From: Dominique O. <dom...@gm...> - 2011-06-13 13:27:07
|
On Mon, Jun 13, 2011 at 8:43 AM, Oz Nahum Tiram <na...@gm...> wrote: > Hi *, > > I am trying to solve a simple sparse system and I get an unclear error. > I have used the solvers before and never encoutered this error. Here is an > example: > > In [505]: print A > --------> print(A) > 1.000000 --- --- --- --- > --- 2.000000 --- --- --- > --- --- 3.000000 --- --- > --- --- --- 4.000000 --- > --- --- --- --- 5.000000 > > In [506]: print b > --------> print(b) > [ 1. 2. 3. 4. 5.] > > In [507]: b > Out[507]: array([ 1., 2., 3., 4., 5.]) > > In [508]: info, iter, relres = sp.itsolvers.bicgstab(A,b,x, tol, maxit) > --------------------------------------------------------------------------- > TypeError Traceback (most recent call last) > > /home/ozdeb/aeg-master/python book/richards flow/RichardsPython/<ipython > console> in <module>() > > TypeError: matvec() takes exactly 2 arguments (3 given) > Hi Oz, What version of Pysparse are you using? Is this the Pysparse from Pypi or one from SVN? Thanks, -- Dominique |