Hi Nathan, I just tried to run minres. from scipy.splinalg.isolve import minres y = minres.minres(A,b) Traceback (most recent call last): File "test_minres.py", line 9, in ? y = minres.minres(A,b) File "/usr/lib/python2.4/site-packages/scipy/splinalg/isolve/minres.py", line 43, in minres b = asarray(b).ravel() NameError: global name 'asarray' is not defined Nils
On Fri, 01 Feb 2008 19:46:58 +0100 "Nils Wagner" <nwagner@iam.uni-stuttgart.de> wrote:
Hi Nathan,
I just tried to run minres.
from scipy.splinalg.isolve import minres
y = minres.minres(A,b)
Traceback (most recent call last): File "test_minres.py", line 9, in ? y = minres.minres(A,b) File "/usr/lib/python2.4/site-packages/scipy/splinalg/isolve/minres.py", line 43, in minres b = asarray(b).ravel() NameError: global name 'asarray' is not defined
Nils
_______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-dev
Please find attached a patch for minres.py Nils
On Feb 1, 2008 1:40 PM, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
Please find attached a patch for minres.py
Merged. You're welcome to test the code, but it's not completely finished yet. It should work for sparse matrices, but preconditioning is not yet implemented and the tol parameter is currently handled differently than other iterative solvers. -- Nathan Bell wnbell@gmail.com http://graphics.cs.uiuc.edu/~wnbell/
On Fri, 1 Feb 2008 13:54:11 -0600 "Nathan Bell" <wnbell@gmail.com> wrote:
On Feb 1, 2008 1:40 PM, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
Please find attached a patch for minres.py
Merged.
You're welcome to test the code, but it's not completely finished yet. It should work for sparse matrices, but preconditioning is not yet implemented and the tol parameter is currently handled differently than other iterative solvers.
Thank you very much for your prompt reply ! Is it planned to add support for dense matrices ? AFAIK, gmres, cg, bicg, etc. can handle dense matrices. Cheers, Nils
On Feb 1, 2008 2:06 PM, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
Is it planned to add support for dense matrices ? AFAIK, gmres, cg, bicg, etc. can handle dense matrices.
Yep, we created LinearOperator/aslinearoperator() to simplify this part. -- Nathan Bell wnbell@gmail.com http://graphics.cs.uiuc.edu/~wnbell/
On Fri, 1 Feb 2008 14:11:22 -0600 "Nathan Bell" <wnbell@gmail.com> wrote:
On Feb 1, 2008 2:06 PM, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
Is it planned to add support for dense matrices ? AFAIK, gmres, cg, bicg, etc. can handle dense matrices.
Yep, we created LinearOperator/aslinearoperator() to simplify this part.
Please can you provide a small example illustrating the new functionality ? Thank you in advance. Nils
On Feb 1, 2008 2:47 PM, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
Please can you provide a small example illustrating the new functionality ?
I've updated the docstrings: http://projects.scipy.org/scipy/scipy/browser/trunk/scipy/splinalg/interface... -- Nathan Bell wnbell@gmail.com http://graphics.cs.uiuc.edu/~wnbell/
On Sat, 2 Feb 2008 12:20:21 -0600 "Nathan Bell" <wnbell@gmail.com> wrote:
On Feb 1, 2008 2:47 PM, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
Please can you provide a small example illustrating the new functionality ?
I've updated the docstrings: http://projects.scipy.org/scipy/scipy/browser/trunk/scipy/splinalg/interface...
Great ! Thank you very much ! Can you also add an example for using a preconditioner ? Cheers, Nils
participants (2)
-
Nathan Bell -
Nils Wagner