I am solving a linear system of few equations (6 equations that has complex coefficients) with numpy.linalg.solve(A, b)
, where the arrays have type="complex128"
. The system is solved for a big range of frequencies and from a certain frequency on, the system becomes very much ill-conditioned. When the condition number is in my case over 1E+19
the system becomes unstable so I do not get right solutions. I have tried to use "clongdouble"
type but it is not supported in numpy.linalg
.
Are there ideas which is the best workaround to increase the precision or to get the system stable in numpy?