Boost logo

Boost Users :

Subject: Re: [Boost-users] How to do svd for a complex matrix using ublas &lapack bindings?
From: Allen Chen (allen.chenal_at_[hidden])
Date: 2008-12-25 09:32:35


2008/12/25 Thomas Klimpel <Thomas.Klimpel_at_[hidden]>:
> Hi Allen,
>
> Allen Chen wrote:
>> Today I begin to learn to use boost ublas.
>
>There is also a mailing list especially for boost ublas.

Thanks! I will join the mailing list.

>
>> And I have successfully done svd for a real matrix.
>> To do svd for a complex matrix, I simply change codes
>> from double to std::complex like the following.
>> But it does not work.
>
> The singular values "S" are still real, even for a complex matrix. So you should write "vector<double> S(2);" instead of "vector<std::complex<double>> S(2);".
>

Oh, that's great, it does work now.
I forget the thing that singual value is already real.
Thank you very much.

Merry christmas!

Allen

> Regards,
> Thomas
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net