/[escript]/trunk/escript/src/DataLazy.cpp
ViewVC logotype

Diff of /trunk/escript/src/DataLazy.cpp

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

revision 1993 by phornby, Fri Nov 7 04:52:15 2008 UTC revision 1994 by phornby, Fri Nov 7 05:18:17 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 682  cout << "Resolve binary: " << toString() Line 682  cout << "Resolve binary: " << toString()
682      PROC_OP(/**/,divides<double>());      PROC_OP(/**/,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.1994

  ViewVC Help
Powered by ViewVC 1.1.26