On Thu, Jul 22, 2010 at 12:17 AM, Christoph Hertzberg
<
chtz@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> 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.
>
> Wouldn't something like this work in your case? (I didn't actually try it
> ...)
>
> (a.array() * b.array().conjugate()).rowwise().normalized();
there is no such vectorwise normalized() function yet, but it could be
>
> 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
> ----------------------------------------------
>
>
>