[Dune-devel] [Dune-Bugs][#683] Requesting value_type and unary operator-() in FieldVector.
Jö Fahlke
jorrit at jorrit.de
Mon Jun 29 16:52:37 CEST 2015
Am Mon, 29. Jun 2015, 16:26:33 +0200 schrieb Oliver Sander:
> Date: Mon, 29 Jun 2015 16:26:33 +0200
> From: Oliver Sander <sander at igpm.rwth-aachen.de>
> To: Christian Engwer <christian.engwer at uni-muenster.de>,
> "dune-devel at dune-project.org" <dune-devel at dune-project.org>
> Subject: Re: [Dune-devel] [Dune-Bugs][#683] Requesting value_type and unary
> operator-() in FieldVector.
>
> I just tested binary operator+ in FieldVector, because that was something I wanted to know anyway.
>
> Unfortunately, I am not a skilled reader of assembler language, but to me it seems that
Just a hint: I found that it helps to compile *without* debugging symbols (-g)
if you want to read the assembler output of the compiler. Then the assmbler
code is much less cluttered. And usually looks very similiar to what I'd
write myself, for simple examples like these.
Regards,
Jö.
> FieldVector a,b,c [snip]
>
> c = a+b;
>
> does not result in temporaries or additional loops. At last parts of our old arguments against
> binary operators and unary operator- appear obsolete.
>
> Cheers,
> Oliver
--
Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,
University of Münster, Orleans-Ring 10, D-48149 Münster
Tel: +49 251 83 35146 Fax: +49 251 83 32729
Software is like sex; it's better when it's free.
-- Linus Torvalds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20150629/6da0b53c/attachment.sig>
More information about the Dune-devel
mailing list