Page 1 of 1

urgent for example using the complex variables in LAPACK++

PostPosted: Thu Oct 13, 2005 2:36 am
by xixi
Hi Julie,

Thank you very much for ur kind help. It is always difficult at the beginning. I tried the double matrix, but I cannot find the example using complex matrix and vector in LAPACK++.

would you like to give me one example using complex matrix, complex vector to solve the linear Ax=b system?

Thanks a lot
Yading

PostPosted: Thu Oct 13, 2005 9:55 am
by Julie
Yading,

To declare a complex matrix, you use LaGenMatrixComplex instead of LaGenMatrixDouble.
After, you just have to use the same call to LaLinearSolve.
The LaLinearSolve routine has been overloaded to perform differents tasks depending on the type of the input Matrix A.

Please refer to http://netlib.org/lapack++/user.ps for more detail. The user guide is very clear and concise [20 pages], it should answer all your questions.

Moreover, you can take a look in the testing directories: (matrix/testing, testing), you will get a very good overview on how to use lapack++.

Sincerely
Julie Langou