freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to apply a functor to ET leafs


From: Richard Guenther
Subject: How to apply a functor to ET leafs
Date: Mon, 28 Oct 2002 13:59:44 +0100 (CET)

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 <address@hidden>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/
The GLAME Project: http://www.glame.de/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]