/[escript]/trunk/escript/src/DataArrayView.h
ViewVC logotype

Diff of /trunk/escript/src/DataArrayView.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 950 by gross, Tue Feb 6 07:01:11 2007 UTC revision 1030 by phornby, Wed Mar 14 05:14:44 2007 UTC
# Line 678  class DataArrayView { Line 678  class DataArrayView {
678                    Operation to apply. Operation must be a pointer to a function.                    Operation to apply. Operation must be a pointer to a function.
679    */    */
680    template <class UnaryFunction>    template <class UnaryFunction>
   ESCRIPT_DLL_API  
681    void    void
682    unaryOp(UnaryFunction operation);    unaryOp(UnaryFunction operation);
683    
# Line 696  class DataArrayView { Line 695  class DataArrayView {
695                    Operation to apply. Must be a pointer to a function.                    Operation to apply. Must be a pointer to a function.
696    */    */
697    template <class UnaryFunction>    template <class UnaryFunction>
   ESCRIPT_DLL_API  
698    void    void
699    unaryOp(ValueType::size_type offset,    unaryOp(ValueType::size_type offset,
700            UnaryFunction operation);            UnaryFunction operation);
# Line 716  class DataArrayView { Line 714  class DataArrayView {
714                    Operation to apply. Must be a pointer to a function.                    Operation to apply. Must be a pointer to a function.
715    */    */
716    template <class BinaryFunction>    template <class BinaryFunction>
   ESCRIPT_DLL_API  
717    void    void
718    binaryOp(const DataArrayView& right,    binaryOp(const DataArrayView& right,
719             BinaryFunction operation);             BinaryFunction operation);
# Line 740  class DataArrayView { Line 737  class DataArrayView {
737                    Operation to apply. Must be a pointer to a function.                    Operation to apply. Must be a pointer to a function.
738    */    */
739    template <class BinaryFunction>    template <class BinaryFunction>
   ESCRIPT_DLL_API  
740    void    void
741    binaryOp(ValueType::size_type leftOffset,    binaryOp(ValueType::size_type leftOffset,
742             const DataArrayView& right,             const DataArrayView& right,
# Line 762  class DataArrayView { Line 758  class DataArrayView {
758                    Operation to apply. Must be a pointer to a function.                    Operation to apply. Must be a pointer to a function.
759    */    */
760    template <class BinaryFunction>    template <class BinaryFunction>
   ESCRIPT_DLL_API  
761    void    void
762    binaryOp(double right,    binaryOp(double right,
763             BinaryFunction operation);             BinaryFunction operation);
# Line 784  class DataArrayView { Line 779  class DataArrayView {
779                    Operation to apply. Must be a pointer to a function.                    Operation to apply. Must be a pointer to a function.
780    */    */
781    template <class BinaryFunction>    template <class BinaryFunction>
   ESCRIPT_DLL_API  
782    void    void
783    binaryOp(ValueType::size_type offset,    binaryOp(ValueType::size_type offset,
784             double right,             double right,
# Line 803  class DataArrayView { Line 797  class DataArrayView {
797                    Operation to apply. Must be a pointer to a function.                    Operation to apply. Must be a pointer to a function.
798    */    */
799    template <class BinaryFunction>    template <class BinaryFunction>
   ESCRIPT_DLL_API  
800    double    double
801    reductionOp(BinaryFunction operation,    reductionOp(BinaryFunction operation,
802                double initial_value) const;                double initial_value) const;
# Line 823  class DataArrayView { Line 816  class DataArrayView {
816                    Operation to apply. Must be a pointer to a function.                    Operation to apply. Must be a pointer to a function.
817    */    */
818    template <class BinaryFunction>    template <class BinaryFunction>
   ESCRIPT_DLL_API  
819    double    double
820    reductionOp(ValueType::size_type offset,    reductionOp(ValueType::size_type offset,
821                BinaryFunction operation,                BinaryFunction operation,
# Line 1314  class DataArrayView { Line 1306  class DataArrayView {
1306     } else if ( in.getRank() == 2) {     } else if ( in.getRank() == 2) {
1307       int s0=ev.getShape()[0];       int s0=ev.getShape()[0];
1308       int s1=ev.getShape()[1];       int s1=ev.getShape()[1];
1309       int i0, i1, i2;       int i0, i1;
1310       if (axis0==0) {       if (axis0==0) {
1311          if (axis1==1) {          if (axis1==1) {
1312             for (i0=0; i0<s0; i0++) {             for (i0=0; i0<s0; i0++) {

Legend:
Removed from v.950  
changed lines
  Added in v.1030

  ViewVC Help
Powered by ViewVC 1.1.26