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

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

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

revision 1333 by matt, Fri Oct 12 07:10:40 2007 UTC revision 1334 by matt, Thu Oct 25 05:08:54 2007 UTC
# Line 459  void matrix_matrix_product(const int SL, Line 459  void matrix_matrix_product(const int SL,
459    }    }
460  }  }
461    
462    template <typename UnaryFunction>
463    inline void tensor_unary_operation(const int size,
464                     const double *arg1,
465                     double * argRes,
466                     UnaryFunction operation)
467    {
468      for (int i = 0; i < size; ++i) {
469        argRes[i] = operation(arg1[i]);
470      }
471      return;
472    }
473    
474  template <typename BinaryFunction>  template <typename BinaryFunction>
475  inline void tensor_binary_operation(const int size,  inline void tensor_binary_operation(const int size,
476                   const double *arg1,                   const double *arg1,

Legend:
Removed from v.1333  
changed lines
  Added in v.1334

  ViewVC Help
Powered by ViewVC 1.1.26