Re: [eigen] Complex number divided by real |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Complex number divided by real*From*: Christoph Hertzberg <chtz@xxxxxxxxxxxxxxxxxxxxxxxx>*Date*: Thu, 22 Jul 2010 00:17:27 +0200

Carlos Becker wrote:

Hi everyone, (first, I am using the dev branch) I am trying to do something like (a.array() * b.array().conjugate()) / ( a.array().abs() * b.array().abs() ), where a and b are two VectorXcf.

(a.array() * b.array().conjugate()).rowwise().normalized(); Because: abs(a)*abs(b) = abs(a)*abs(conj(b)) = abs(a*conj(b)) Actually, an elementwise signum function would be helpful in that case. -- ---------------------------------------------- Dipl.-Inf. Christoph Hertzberg Cartesium 0.051 Universität Bremen Enrique-Schmidt-Straße 5 28359 Bremen Tel: (+49) 421-218-64252 ----------------------------------------------

**Follow-Ups**:**Re: [eigen] Complex number divided by real***From:*Gael Guennebaud

**Re: [eigen] Complex number divided by real***From:*Carlos Becker

**References**:**[eigen] Complex number divided by real***From:*Carlos Becker

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Complex number divided by real** - Next by Date:
**Re: [eigen] Complex number divided by real** - Previous by thread:
**Re: [eigen] Complex number divided by real** - Next by thread:
**Re: [eigen] Complex number divided by real**

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