[SciPy-dev] ValueError: failed to create intent(cache|hide)|optional array-- must have defined dimensions but got (0, )
Nils Wagner
nwagner at mecha.uni-stuttgart.de
Wed Feb 15 05:44:07 EST 2006
Hi all,
I have used the latest svn version of scipy.
BTW X= is initialized as follows
X0 = csc_matrix((n,s))
The problem which I have reported yesterday is
R0 = C-(A*X0+X0*B)
File "/usr/local/lib/python2.4/site-packages/scipy/sparse/sparse.py", line 537, in __add__
c, rowc, ptrc, ierr = func(data1, self.rowind[:nnz1], self.indptr, data2, ocs.rowind[:nnz2], ocs.indptr)
ValueError: failed to create intent(cache|hide)|optional array-- must have defined dimensions but got (0,)
>>> C
<317x10 sparse matrix of type '<type 'float64scalar'>'
with 3170 stored elements (space for 3828)
in Compressed Sparse Column format>
>>> A
<317x317 sparse matrix of type '<type 'float64scalar'>'
with 7280 stored elements (space for 7327)
in Compressed Sparse Column format>
>>> X0
<317x10 sparse matrix of type '<type 'float64scalar'>'
with 0 stored elements (space for 100)
in Compressed Sparse Column format>
>>> B
<10x10 sparse matrix of type '<type 'float64scalar'>'
with 28 stored elements (space for 28)
in Compressed Sparse Column format>
More information about the SciPy-Dev
mailing list