|
From: Oz N. T. <na...@gm...> - 2011-06-13 08:49:52
|
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)
Any help would be appreciated,
Thanks in advance,
Oz
|