/[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 1950 by jfenwick, Thu Oct 30 00:59:34 2008 UTC revision 1972 by jfenwick, Thu Nov 6 01:49:39 2008 UTC
# Line 509  DataLazy::resolveUnary(ValueType& v, siz Line 509  DataLazy::resolveUnary(ValueType& v, siz
509    switch (m_op)    switch (m_op)
510    {    {
511      case SIN:        case SIN:  
512      tensor_unary_operation(m_samplesize, left, result, ::sin);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::sin);
513      break;      break;
514      case COS:      case COS:
515      tensor_unary_operation(m_samplesize, left, result, ::cos);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::cos);
516      break;      break;
517      case TAN:      case TAN:
518      tensor_unary_operation(m_samplesize, left, result, ::tan);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::tan);
519      break;      break;
520      case ASIN:      case ASIN:
521      tensor_unary_operation(m_samplesize, left, result, ::asin);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::asin);
522      break;      break;
523      case ACOS:      case ACOS:
524      tensor_unary_operation(m_samplesize, left, result, ::acos);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::acos);
525      break;      break;
526      case ATAN:      case ATAN:
527      tensor_unary_operation(m_samplesize, left, result, ::atan);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::atan);
528      break;      break;
529      case SINH:      case SINH:
530      tensor_unary_operation(m_samplesize, left, result, ::sinh);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::sinh);
531      break;      break;
532      case COSH:      case COSH:
533      tensor_unary_operation(m_samplesize, left, result, ::cosh);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::cosh);
534      break;      break;
535      case TANH:      case TANH:
536      tensor_unary_operation(m_samplesize, left, result, ::tanh);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::tanh);
537      break;      break;
538      case ERF:      case ERF:
539  #ifdef _WIN32  #ifdef _WIN32
# Line 564  DataLazy::resolveUnary(ValueType& v, siz Line 564  DataLazy::resolveUnary(ValueType& v, siz
564  #endif    #endif  
565      break;      break;
566      case LOG10:      case LOG10:
567      tensor_unary_operation(m_samplesize, left, result, ::log10);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::log10);
568      break;      break;
569      case LOG:      case LOG:
570      tensor_unary_operation(m_samplesize, left, result, ::log);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::log);
571      break;      break;
572      case SIGN:      case SIGN:
573      tensor_unary_operation(m_samplesize, left, result, escript::fsign);      tensor_unary_operation(m_samplesize, left, result, escript::fsign);
574      break;      break;
575      case ABS:      case ABS:
576      tensor_unary_operation(m_samplesize, left, result, ::fabs);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::fabs);
577      break;      break;
578      case NEG:      case NEG:
579      tensor_unary_operation(m_samplesize, left, result, negate<double>());      tensor_unary_operation(m_samplesize, left, result, negate<double>());
# Line 584  DataLazy::resolveUnary(ValueType& v, siz Line 584  DataLazy::resolveUnary(ValueType& v, siz
584      throw DataException("Programmer error - POS not supported for lazy data.");      throw DataException("Programmer error - POS not supported for lazy data.");
585      break;      break;
586      case EXP:      case EXP:
587      tensor_unary_operation(m_samplesize, left, result, ::exp);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::exp);
588      break;      break;
589      case SQRT:      case SQRT:
590      tensor_unary_operation(m_samplesize, left, result, ::sqrt);      tensor_unary_operation<double (*)(double)>(m_samplesize, left, result, ::sqrt);
591      break;      break;
592      case RECIP:      case RECIP:
593      tensor_unary_operation(m_samplesize, left, result, bind1st(divides<double>(),1.));      tensor_unary_operation(m_samplesize, left, result, bind1st(divides<double>(),1.));

Legend:
Removed from v.1950  
changed lines
  Added in v.1972

  ViewVC Help
Powered by ViewVC 1.1.26