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

Carsten Graeser graeser at math.fu-berlin.de
Tue Dec 5 12:29:34 CET 2006


Hello Christian,
without the operators my code works for FieldVector<double,1>.
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 ?

Does anyone know another reason to have these operators ?

Carsten


Christian Engwer schrieb:
> Hi Carsten,
> 
> did you try running your code without the arithmetic operators? You
> arguments sound convincing, but I would first test the
> implications. If it worked for you, I think we could/should remove the
> arithmetic operators.
> 
> Christian

-- 
----------------------------------------------------------------------
  Carsten Gräser

  Freie Universität Berlin
  FB Mathematik und Informatik (WE II)
  Arnimallee 2-6
  14195 Berlin, Germany

  office: +49-30 / 838-75349
  fax:    +49-30 / 838-54977
  email: graeser at math.fu-berlin.de




More information about the Dune mailing list