[SciPy-dev] 12 errors using 0.7.3.1538 0.4.2_1461
Nils Wagner
nwagner at mecha.uni-stuttgart.de
Tue Nov 29 13:35:48 CST 2005
On Tue, 29 Nov 2005 12:08:34 -0700
Travis Oliphant <oliphant.travis at ieee.org> wrote:
> Nils Wagner wrote:
>
> There have been reports of sparse matrix errors after
>the recent change
> to scipy_core to allow other object array math to work
>correctly.
>
> I'm not getting these errors.
>
> Please make sure you've got an updated version of
>Lib/sparse/sparse.py
>
> In particular, make sure that the spmatrix class defines
>the
> __array_priority__ attribute. The hand-off to the rop
>methods only
> occurs if the object has this attribute.
>
> -Travis
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev
Hi Travis,
I am using the latest svn versions of core/scipy.
The errors are still there. Can someone reproduce these
errors ?
scipy.test(1,10) yields
======================================================================
ERROR: Check whether adding a dense matrix to a sparse
matrix works
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/tests/test_sparse.py
", line 148, in check_add_dense
sum1 = self.dat + self.datsp
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/sparse.py",
line 502
, in __radd__
raise NotImplementedError, 'adding a scalar to a CSC
matrix is ' \
NotImplementedError: adding a scalar to a CSC matrix is
not yet supported
======================================================================
ERROR: check_matmat
(scipy.sparse.sparse.test_sparse.test_csc)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/tests/test_sparse.py
", line 84, in check_matmat
assert_array_almost_equal((a*bsp).todense(),
dot(a,b))
AttributeError: 'scipy.ndarray' object has no attribute
'todense'
======================================================================
ERROR: Check whether adding a dense matrix to a sparse
matrix works
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/tests/test_sparse.py
", line 148, in check_add_dense
sum1 = self.dat + self.datsp
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/sparse.py",
line 173
, in __radd__
return csc.__radd__(other)
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/sparse.py",
line 502
, in __radd__
raise NotImplementedError, 'adding a scalar to a CSC
matrix is ' \
NotImplementedError: adding a scalar to a CSC matrix is
not yet supported
======================================================================
ERROR: check_matmat
(scipy.sparse.sparse.test_sparse.test_csr)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/tests/test_sparse.py
", line 84, in check_matmat
assert_array_almost_equal((a*bsp).todense(),
dot(a,b))
AttributeError: 'scipy.ndarray' object has no attribute
'todense'
======================================================================
ERROR: Check whether adding a dense matrix to a sparse
matrix works
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/tests/test_sparse.py
", line 149, in check_add_dense
assert_array_equal(sum1, 2*self.dat)
File
"/usr/local/lib/python2.4/site-packages/scipy/test/testing.py",
line 724,
in assert_array_equal
reduced = ravel(equal(x,y))
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/sparse.py",
line 146
, in __cmp__
raise TypeError, "comparison of sparse matrices not
implemented"
TypeError: comparison of sparse matrices not implemented
======================================================================
ERROR: check_matmat
(scipy.sparse.sparse.test_sparse.test_dok)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/tests/test_sparse.py
", line 84, in check_matmat
assert_array_almost_equal((a*bsp).todense(),
dot(a,b))
AttributeError: 'scipy.ndarray' object has no attribute
'todense'
======================================================================
ERROR: Check whether adding a dense matrix to a sparse
matrix works
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/tests/test_sparse.py
", line 148, in check_add_dense
sum1 = self.dat + self.datsp
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/sparse.py",
line 502
, in __radd__
raise NotImplementedError, 'adding a scalar to a CSC
matrix is ' \
NotImplementedError: adding a scalar to a CSC matrix is
not yet supported
======================================================================
ERROR: check_matmat (scipy.sparse.test_sparse.test_csc)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/tests/test_sparse.py
", line 84, in check_matmat
assert_array_almost_equal((a*bsp).todense(),
dot(a,b))
AttributeError: 'scipy.ndarray' object has no attribute
'todense'
======================================================================
ERROR: Check whether adding a dense matrix to a sparse
matrix works
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/tests/test_sparse.py
", line 148, in check_add_dense
sum1 = self.dat + self.datsp
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/sparse.py",
line 173
, in __radd__
return csc.__radd__(other)
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/sparse.py",
line 502
, in __radd__
raise NotImplementedError, 'adding a scalar to a CSC
matrix is ' \
NotImplementedError: adding a scalar to a CSC matrix is
not yet supported
======================================================================
ERROR: check_matmat (scipy.sparse.test_sparse.test_csr)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/tests/test_sparse.py
", line 84, in check_matmat
assert_array_almost_equal((a*bsp).todense(),
dot(a,b))
AttributeError: 'scipy.ndarray' object has no attribute
'todense'
======================================================================
ERROR: Check whether adding a dense matrix to a sparse
matrix works
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/tests/test_sparse.py
", line 149, in check_add_dense
assert_array_equal(sum1, 2*self.dat)
File
"/usr/local/lib/python2.4/site-packages/scipy/test/testing.py",
line 724, in assert_array_equal
reduced = ravel(equal(x,y))
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/sparse.py",
line 146 , in __cmp__
raise TypeError, "comparison of sparse matrices not
implemented"
TypeError: comparison of sparse matrices not implemented
======================================================================
ERROR: check_matmat (scipy.sparse.test_sparse.test_dok)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib/python2.4/site-packages/scipy/sparse/tests/test_sparse.py
", line 84, in check_matmat
assert_array_almost_equal((a*bsp).todense(),
dot(a,b))
AttributeError: 'scipy.ndarray' object has no attribute
'todense'
----------------------------------------------------------------------
Ran 1352 tests in 4.438s
FAILED (errors=12)
Nils
More information about the Scipy-dev
mailing list