"In principle you could order a real matrix and coeff and rhs vectors
as: real imag real imag, etc."
Sorry I'm new to GSL. In my dataset, X is real and Y, A are complex.
Just to make sure, do you mean that it can be done by having X, Y and
A as complex data sets, and packing them into a real vector by
alternating real and imaginary values?
This way, is it then possible to use gsl_multifit_linear(x, y, a, cov,
chisq, ws)?
Thanks,
Apurv
On Tue, Aug 7, 2012 at 4:56 PM, Patrick Alken
<address@hidden <mailto:address@hidden>> wrote:
There aren't any native complex implementations of the multifit
routines. In principle you could order a real matrix and coeff and
rhs vectors as: real imag real imag, etc. But its probably easiest
to use the complex LAPACK routines for this.
On 08/07/2012 03:29 PM, Apurv Bhartia wrote:
Hi,
Is there a way to use least squares fit for complex data sets?
All of the
*_multifit_* variants seem to require non-complex data. If
not, then any
advice on how I can somehow get this done?
Thanks,
Apurv