[Dune] Yet another small question on FieldVectors

Sven Marnach sven at pantoffel-wg.de
Wed Jul 29 11:30:45 CEST 2009


Dear Aleksejs,

there is an operator A *= b, as Markus pointed out.  The operator
A * b does not exist deliberately since it would involve the creation
of a temporary object an inefficient copying.  If you really want to
do this, make a copy explicitly and then use the *= operator:

  Dune::FieldVector<ctype,dim> A_copy(A);
  A_copy *= b;

Greetings,
    Sven




More information about the Dune mailing list