[SciPy-User] Any least-squares solver handles complex data/coefficients?

Robert Kern robert.kern at gmail.com
Fri Jul 21 15:01:10 EDT 2017


On Fri, Jul 21, 2017 at 11:54 AM, Neal Becker <ndbecker2 at gmail.com> wrote:
>
> Subject says it all

Not quite. Linear or nonlinear? If linear, then np.linalg.lstsq() works
with complex matrices and vectors just fine.

If nonlinear, then no, you will have to convert the vector of real
parameters to the complex parameters to pass through your model code.

--
Robert Kern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20170721/9530d69c/attachment.html>


More information about the SciPy-User mailing list