[Dune] arithmetic operators for FieldVector<K,1>

Sven Marnach sven at pantoffel-wg.de
Thu Dec 7 11:59:16 CET 2006


Hi all,

I hit the same issue independently and I agree with Carsten.

Carsten Graeser schrieb am Di, 05. Dez 2006, um 12:29:34 +0100:
> The only point I can see is, that the operator only use '+=' and
> not '+' of K. So if you use a type K that does not implement '+' in the
> present version FieldVector<K,1> has operator '+'. But K is assumed
> to be compatible with double and why should FieldVector<K,1> have '+'
> if K has not ?

Moreover, the operator + of FieldVector<K,1> can be used _only_ if K
doesn't have an operator +; otherwise there would be an ambiguity.  So
this operator is really useless!

Greetings,
    Sven




More information about the Dune mailing list