<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Benedikt!<br>
If you really want to know what the code does then go and read it.<br>
It's just C++ after all. I wouldn't do anything else at this point
either.<br>
--<br>
Oliver<br>
<br>
Am 11.01.2011 13:56, schrieb Benedikt Oswald:
<blockquote cite="mid:86F5E5BC-894B-4D06-AF8B-DACB77DAF0E0@psi.ch"
type="cite">Hi Oliver, thanks...but:
<div><br>
</div>
<div>when I read the documentation for the method two_norm() it says
that it calculates</div>
<div>the square root of the sum of the square of the elements, but
for a complex vector</div>
<div>one would require that the method calculates the square root
over the sum of</div>
<div>the element times its complex conjugate ?</div>
<div><br>
</div>
<div>what do you think on this ? </div>
<div><br>
</div>
<div>Greetings, Benedikt</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div>
<div>On Jan 7, 2011, at 4:36 PM, Oliver Sander wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div bgcolor="#ffffff" text="#000000">Hi Benedikt!<br>
AFAIK this should work.<br>
Best,<br>
Oliver<br>
<br>
Am 06.01.2011 15:16, schrieb Benedikt Oswald:
<blockquote cite="mid:2B4D3BD7-9EB2-42A4-906F-EF0388EE45C5@psi.ch"
type="cite">
<div>Dear Dune, what will happen when I use a code sequence like
this:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><span
style="color: rgb(0, 0, 0);">Dune::</span>FieldVector<span
style="color: rgb(0, 0, 0);"><</span>std::complex<double><span
style="color: rgb(0, 0, 0);">,3> electricField</span></div>
</div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><font
class="Apple-style-span"><br>
</font></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><font
class="Apple-style-span">then assign some values to
the vector's components and</font></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><font
class="Apple-style-span">eventually calculate the
two_norm of the vector like this:</font></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><font
class="Apple-style-span"><br>
</font></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><font
class="Apple-style-span">double length = </font><span
class="Apple-style-span" style="">electricField.two_norm();</span></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><span
class="Apple-style-span" style=""><br>
</span></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><span
class="Apple-style-span" style=""><br>
</span></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><span
class="Apple-style-span" style="">Will this
correctly evaluate ?</span></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><span
class="Apple-style-span" style=""><br>
</span></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><span
class="Apple-style-span" style=""><br>
</span></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><span
class="Apple-style-span" style="">Thanks for
having a look and greetings, Benedikt</span></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><span
class="Apple-style-span" style=""><br>
</span></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><font
class="Apple-style-span"><br>
</font></div>
<div
style="margin: 0px; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(5, 97, 66);"><font
class="Apple-style-span"><br>
</font></div>
<div><br>
</div>
<br>
<div>
<div style="word-wrap: break-word;">
<div>
<div>--------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
<div>Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, <a
moz-do-not-send="true" href="http://www.psi.ch/">www.psi.ch</a>,
Computational Accelerator Scientist, <a moz-do-not-send="true"
href="http://amas.web.psi.ch/">http://amas.web.psi.ch</a></div>
<div>Paul Scherrer Institute (PSI), CH-5232 Villigen, Suisse, <a
moz-do-not-send="true" href="mailto:benedikt.oswald@psi.ch">benedikt.oswald@psi.ch</a>,
+41(0)56
310 32 12</div>
<div><br>
</div>
<div>"Passion is required for any great work, and for the
revolution passion and audacity are required in big doses.",<br>
Ernesto 'Che' Guevara, Letter to his parents.<br>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
</div>
</div>
</div>
<br>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Dune mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Dune@dune-project.org">Dune@dune-project.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.dune-project.org/mailman/listinfo/dune">http://lists.dune-project.org/mailman/listinfo/dune</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<br>
Dune mailing list<br>
<a moz-do-not-send="true" href="mailto:Dune@dune-project.org">Dune@dune-project.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.dune-project.org/mailman/listinfo/dune">http://lists.dune-project.org/mailman/listinfo/dune</a><br>
</blockquote>
</div>
<br>
<div><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span
class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<div style="word-wrap: break-word;">
<div>
<div>--------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
<div>Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, <a
moz-do-not-send="true" href="http://www.psi.ch">www.psi.ch</a>,
Computational Accelerator Scientist, <a moz-do-not-send="true"
href="http://amas.web.psi.ch">http://amas.web.psi.ch</a></div>
<div>Paul Scherrer Institute (PSI), CH-5232 Villigen, Suisse, <a
moz-do-not-send="true" href="mailto:benedikt.oswald@psi.ch">benedikt.oswald@psi.ch</a>,
+41(0)56 310 32 12</div>
<div><br>
</div>
<div>"Passion is required for any great work, and for the
revolution passion and audacity are required in big doses.",<br>
Ernesto 'Che' Guevara, Letter to his parents.<br>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
</div>
</div>
</span></span></div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Dune mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dune@dune-project.org">Dune@dune-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.dune-project.org/mailman/listinfo/dune">http://lists.dune-project.org/mailman/listinfo/dune</a>
</pre>
</blockquote>
<br>
</body>
</html>