Replies: 3 comments 1 reply
-
I see. It is not a least square solver. Then which is the right least square solver in Jax? if A is an operator instead of matrix? Thanks |
Beta Was this translation helpful? Give feedback.
-
I'll note that scipy's version of conjugate gradient also requires a square symmetric/hermitian matrix: https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.linalg.cg.html |
Beta Was this translation helpful? Give feedback.
-
Thanks @jakevdp, all the sparse function in jax.scipy.sparse.linalg requires the input and output have the same shape. I am looking some function like fmincon in Matlab, and LSMR only takes A as a matrix, instead of an operator. @patrick-kidger I will check your library. Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
when we solve the general linear problem of Ax=b, why we expect the x and b have the same shape?
It is mentioned in https://docs.jax.dev/en/latest/_autosummary/jax.scipy.sparse.linalg.cg.html as
And in the scipy/sparse/linalg.py line 213
Beta Was this translation helpful? Give feedback.
All reactions