forum.alglib.net
http://forum.alglib.net/

Eigen value problem
http://forum.alglib.net/viewtopic.php?f=2&t=410
Page 1 of 1

Author:  Emmo [ Sun Aug 14, 2011 6:15 pm ]
Post subject:  Eigen value problem

Hello everybody,
I am new in c++ and ALGlib. I am trying to use the function:

hmatrixevd( a, n, zneeded, isupper, d, z);
in order to get the eigen values for a hermitian matrix 'a' that contains complex elements. The problem that I face is that, the matrix 'a' must be given as string as shown below, for example:

complex_2d_array a = "[ [2.5,1+2i] , [1-2i, 1.5] ]";

and I have to solve the eigen value problem using 'hmatrixevd' function for hundreds of times and each time with different elements of the Hermitian matrix 'a'.
The question is that, how can I get the matrix a in string form to passed it to the function.

Please any suggestions.

Author:  Sergey.Bochkanov [ Mon Aug 15, 2011 7:35 pm ]
Post subject:  Re: Eigen value problem

You don't have to i nitialize matrix as string - it is just one of several ways of initializing matrix. You can initialize it: a) from string, b) using setlength() + element-by-element initialization, c) using setcontent()

Author:  Emmo [ Tue Aug 16, 2011 10:12 am ]
Post subject:  Re: Eigen value problem

Thanks a lot for your valuable response.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/