[pooma-dev] Evaluator/ReductionEvaluator.h question

Richard Guenther rguenth at tat.physik.uni-tuebingen.de
Fri Feb 21 18:40:24 UTC 2003


On Fri, 21 Feb 2003, Mark Mitchell wrote:

>
>
> --On Friday, February 21, 2003 07:08:39 PM +0100 Richard Guenther
> <rguenth at tat.physik.uni-tuebingen.de> wrote:
>
> > Hmm - at least for such a type constructing from a 1 or 0 element as
> > neutral element of multiplication/addition does make sense.
>
> Well, in an algebraic sense there are going to be additive and
> multiplicative identities -- but they might not be the integers 1 and 0.
> You might not have an "int" constructor for, say, a matrix class.

Well, constructing from int 1 and int 0 would make sense, but a generic
from int constructor of course not. Were the reductions designed to allow
for such complex objects? prod() and sum() would have surely worked for
almost all of them.

Also for these you wont have meaningful comparison operators, so at least
min()/max() will not work for them.

Richard.




More information about the pooma-dev mailing list