How to apply a functor to ET leafs

Richard Guenther rguenth at tat.physik.uni-tuebingen.de
Mon Oct 28 12:59:44 UTC 2002


Hi!

I'd like to apply a functor to the parts of an expression and view
the result as an expression. I suspect I can do this somehow using
forEach(), but before I dig too far, I just ask if somebody knows
the answer already. Take

  Field_t A, B, C;
  Interval I;

  C(I) = forEach(A*B, evalAt(0.5), ?)(I);

which should "evaluate" A and B at 0.5 and then just apply the usual
expression for interval I.

Can this be done?

Richard.

--
Richard Guenther <richard.guenther at uni-tuebingen.de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/
The GLAME Project: http://www.glame.de/




More information about the pooma-dev mailing list