[Dune] Field Vector with K = std::complex<double> ?

Benedikt Oswald benedikt.oswald at psi.ch
Thu Jan 6 15:16:49 CET 2011


Dear Dune, what will happen when I use a code sequence like this:


Dune::FieldVector<std::complex<double>,3> electricField

then assign some values to the vector's components and
eventually calculate the two_norm of the vector like this:

double length = electricField.two_norm();


Will this correctly evaluate ?


Thanks for having a look and greetings, Benedikt





--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, www.psi.ch, Computational Accelerator Scientist, http://amas.web.psi.ch
Paul Scherrer  Institute (PSI), CH-5232 Villigen, Suisse, benedikt.oswald at psi.ch, +41(0)56 310 32 12

"Passion is required for any great work, and for the revolution passion and audacity are required in big doses.",
 Ernesto 'Che' Guevara, Letter to his parents.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110106/abed75e5/attachment.htm>


More information about the Dune mailing list