Re: [eigen] vectorization of complex |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] vectorization of complex*From*: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>*Date*: Fri, 23 Jul 2010 18:46:46 -0400*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=z8ZF6VaMbx1zL82WlYxsEfbLjEj1tlpTbHzNDuw6NRA=; b=QYG6PYdp4E54pM7lcZqnrhtQ7K0vOZq1FbJ1fzPkkEZs1qOZrhbXddIJKrZyGukqCN T9d9lsWnn+l6zLxcS02lCzU+9j2dr5uq/M42aMTbb098KRIvKGkBIAoxy4j9Q9npXdU0 pIQJGAl+fo5q+UxCdyEv0ewuXXS7XrJtYJvkI=*Domainkey-signature*: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=mjKT94szDzZxwoU+loi2THX1yUx4HQF5IMZYKUeKGOTuQQWrkEjQANCOPdlxezxx3e w0tuVjN5MkvxqI7TboI4V8n9Ce4xyUoslsHDfDrmbn3qxHz0MippzGGdXSydcZgISxi2 gquz+m0wiH5V0IG3q2iYlcybfhxB/Herlc8Bg=

There isn't, but this will compile to optimized code (only 1 array traversal):

array /= array.abs();

Benoit

2010/7/22 Carlos Becker <carlosbecker@xxxxxxxxx>

Ok, works now, thanks!Btw, is there any Eigen function available to do what we were talking about in the other thread? I mean to 'normalize' every complex number in a given vector/matrix w.r.t. its abs value..Thanks.CarlosOn Thu, Jul 22, 2010 at 4:20 PM, Gael Guennebaud <gael.guennebaud@xxxxxxxxx> wrote:

hm I fixed that during the merge, maybe I forgot to include this change, this is a matter of a few seconds...

gaelOn Thu, Jul 22, 2010 at 5:11 PM, Carlos Becker <carlosbecker@xxxxxxxxx> wrote:

I am getting an error here, I was compiling with your branch before and no problem, but when compiling with the current dev branch (after your merge) I get:

In file included from eigen/Eigen/Geometry:51,

from eigen/Eigen/Dense:6,

from main.cpp:16:

eigen/Eigen/src/Geometry/arch/Geometry_SSE.h: In static member function ‘static Eigen::Quaternion<double> Eigen::ei_quat_product<1, Derived, OtherDerived, double, 1>::run(const Eigen::QuaternionBase<Derived>&, const Eigen::QuaternionBase<Derived1>&)’:

eigen/Eigen/src/Geometry/arch/Geometry_SSE.h:82: error: no matching function for call to ‘ei_pset1(const double&)’

eigen/Eigen/src/Geometry/arch/Geometry_SSE.h:83: error: no matching function for call to ‘ei_pset1(const double&)’

eigen/Eigen/src/Geometry/arch/Geometry_SSE.h:84: error: no matching function for call to ‘ei_pset1(const double&)’

eigen/Eigen/src/Geometry/arch/Geometry_SSE.h:85: error: no matching function for call to ‘ei_pset1(const double&)’

I guess there is something missing, but not sure. I am not using Geometry explicitly anywhere.ThanksOn Thu, Jul 22, 2010 at 4:03 PM, Gael Guennebaud <gael.guennebaud@xxxxxxxxx> wrote:

merge done.

as usual I expect some troubles on non linux/gcc platforms, we'll see.....

gael

**Follow-Ups**:**Re: [eigen] vectorization of complex***From:*Benoit Jacob

**References**:**[eigen] vectorization of complex***From:*Gael Guennebaud

**Re: [eigen] vectorization of complex***From:*Benoit Jacob

**Re: [eigen] vectorization of complex***From:*Gael Guennebaud

**Re: [eigen] vectorization of complex***From:*Benoit Jacob

**Re: [eigen] vectorization of complex***From:*Gael Guennebaud

**Re: [eigen] vectorization of complex***From:*Benoit Jacob

**Re: [eigen] vectorization of complex***From:*Gael Guennebaud

**Re: [eigen] vectorization of complex***From:*Carlos Becker

**Re: [eigen] vectorization of complex***From:*Gael Guennebaud

**Re: [eigen] vectorization of complex***From:*Carlos Becker

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] legal question** - Next by Date:
**Re: [eigen] vectorization of complex** - Previous by thread:
**Re: [eigen] vectorization of complex** - Next by thread:
**Re: [eigen] vectorization of complex**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |