Complex Matrix

Dear all,

I would like to know if is there some way to use TMatrix with TComplex elements inside. I would like to solve a linear system where my matrix is complex.
I tried to load libMatrix.dll manually:
and them use TMatrix, but it doesn’t work.

Thank you very much for any kind of information,

You cannot use a Tmatrix with a TComplex. TMatrix supports only basic types float and double.


Thank you Rene for the answer.
Ok, to avoid this problem is there a way to use the C++ complex.h class inside root? How can I load it? (I’m on Windows, I installed root 5.24 from binaries)

Thank you another time.

You can do something like

root > .x comp.C+


[code]//file comp.C

void comp() {
complex k;