Re: [eigen] array functionality... |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] array functionality...
- From: Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>
- Date: Sat, 13 Mar 2010 14:37:32 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=CeGl1l+ReUMKZzE/3a92GdntXxCdLXoRPdXt72olOC8=; b=lC5cObNrOWQbz+7pal4TbhtuIh28BMdVE3wVVkYm0Sw2D0oKPhHEF0pLxPiQIQIWYj btif0S6Z7u/jOsPE5KkyOco3rTMti8+1cngobWK2CBMRnbHi1gebrPl5tHUN/VaP+F8X OW2dVG3U4RMyvPcTiyUl24ZK8FC8yqbLEFbaM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bqxyiudnCawj5bEKWHg7C8RZOLXj/UgrxCchbEqNEYdFcaRGiHMh7R1ORv8puxwvx6 iN0fan4PR4ifGlYZKMqToigp6/SbHt/xq3aYAGQlUXL0OxYjj9vv97uYWliAegb0fbvl 3UjKNWLHF56oAfj5hDQ317mA7GZcQ/r8HQmy4=
I've committed a first fix. After recognizing that reductions are way
better optimized by MSVC when .size() is known at compile time I tried
to improve promotion of fixed size types in CwiseBinaryOp.
I did something similar in Replicate to avoid modulo operations. It
seems as if todays compilers are easily capable of simplifying
if-clauses which can be resolved at compile time... that's nice. I
think the fix is all right for now since the most common use case for
replication is the replication of vectors. I think one rarely wants to
replicate matrices.
- Hauke