/[escript]/branches/clazy/escriptcore/src/DataLazy.cpp
ViewVC logotype

Diff of /branches/clazy/escriptcore/src/DataLazy.cpp

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

branches/schroedinger_upto1946/escript/src/DataLazy.cpp revision 1993 by phornby, Fri Nov 7 04:52:15 2008 UTC trunk/escript/src/DataLazy.cpp revision 2021 by phornby, Mon Nov 10 14:07:49 2008 UTC
# Line 615  DataLazy::resolveUnary(ValueType& v, siz Line 615  DataLazy::resolveUnary(ValueType& v, siz
615  #define PROC_OP(TYPE,X)                               \  #define PROC_OP(TYPE,X)                               \
616      for (int i=0;i<steps;++i,resultp+=resultStep) \      for (int i=0;i<steps;++i,resultp+=resultStep) \
617      { \      { \
618         tensor_binary_operation##TYPE(chunksize, &((*left)[lroffset]), &((*right)[rroffset]), resultp, X); \         tensor_binary_operation< TYPE >(chunksize, &((*left)[lroffset]), &((*right)[rroffset]), resultp, X); \
619         lroffset+=leftStep; \         lroffset+=leftStep; \
620         rroffset+=rightStep; \         rroffset+=rightStep; \
621      }      }
# Line 670  cout << "Resolve binary: " << toString() Line 670  cout << "Resolve binary: " << toString()
670    switch(m_op)    switch(m_op)
671    {    {
672      case ADD:      case ADD:
673          PROC_OP(/**/,plus<double>());          PROC_OP(NO_ARG,plus<double>());
674      break;      break;
675      case SUB:      case SUB:
676      PROC_OP(/**/,minus<double>());      PROC_OP(NO_ARG,minus<double>());
677      break;      break;
678      case MUL:      case MUL:
679      PROC_OP(/**/,multiplies<double>());      PROC_OP(NO_ARG,multiplies<double>());
680      break;      break;
681      case DIV:      case DIV:
682      PROC_OP(/**/,divides<double>());      PROC_OP(NO_ARG,divides<double>());
683      break;      break;
684      case POW:      case POW:
685         PROC_OP(<double (double,double)>,::pow);         PROC_OP(double (double,double),::pow);
686      break;      break;
687      default:      default:
688      throw DataException("Programmer error - resolveBinary can not resolve operator "+opToString(m_op)+".");      throw DataException("Programmer error - resolveBinary can not resolve operator "+opToString(m_op)+".");

Legend:
Removed from v.1993  
changed lines
  Added in v.2021

  ViewVC Help
Powered by ViewVC 1.1.26