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.
|