|Re: [eigen] Clang issue on MacOS when the set variable is used in the given data|
[ Thread Index |
| More lists.tuxfamily.org/eigen Archives
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Clang issue on MacOS when the set variable is used in the given data
- From: Arnaud BARRE <arnaud.barre@xxxxxxxxx>
- Date: Fri, 19 Apr 2013 14:17:37 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=HPIjwoMnH33/HBiu7wOrxRO25KmXvrcffoHq8cYK43I=; b=uSQMz3QmmpiqlKN0u0zXvJyk6c82OpNwkVFBhiUyHrByee1PnbdY95IJ4ICGD0Ulpx lB7ZbExiWk1c4eMgd1/jLKVGMK6V+A+jyTJks8DxhOuAHxlFWYaAU3OlMRVMJLl8rMAo SANajceRiNvhM3SKcHEOZzk5s9BNMFVXEty0oY9VstRlIDq7vSkFZMjhQA9EzE2ie7ls 703Umh6JIQ12wUFYSoTaIwqvrp4F1/vg3Qq6IMW6SWlAKSa9D6lqY0mbDvfSyUaJdT2B PbLVOz/ewuhAIIvNbiWBPQECxc9WsgGPwaLSOkOGgdpXwrrgzVdgC/0GUSPokyfwPApX 0B2w==
Thanks Gael for these hints, I will rewrite the code in consequence.
Regarding this point
> Is this case it amounts to the same because you multiply it to an
> object that has compile time sizes, but it general it's better to
> specify the sizes at compile time when you can.
> In general, the more specific, the better. So segment will never be a
> worse choice.
So it means that:
- operator<< (): is a very general tool and can handle everything (but be carefull to not read the matrix you are filling)
- block()/segment(): similar to operator but is not affected by the reading/filling effect
- segment<>, tail<>, block<> : only specific for operation with known compile time dimensions but have the best perfornance.
Sorry for all of these (noob) questions. I think I didn't get it right long time ago :-)