PythonOptimizers / cysparse

Python/Cython library to replace PySparse
http://PythonOptimizers.github.io/cysparse
7 stars 3 forks source link

CSCSparseMatrix to NumPy ndarray: does not work #201

Closed ghost closed 9 years ago

ghost commented 9 years ago
"C = CSCSparseMatrix(...)"
C.to_ndarray()

triggers

Traceback (most recent call last):
  File "spqr.py", line 74, in <module>
    Q_np = Q.to_ndarray()
  File "cysparse/sparse/csc_mat_matrices/csc_mat_INT64_t_FLOAT64_t.pyx", line 694, in cysparse.sparse.csc_mat_matrices.csc_mat_INT64_t_FLOAT64_t.CSCSparseMatrix_INT64_t_FLOAT64_t.to_ndarray (cysparse/sparse/csc_mat_matrices/csc_mat_INT64_t_FLOAT64_t.c:8322)
IndexError: Out of bounds on buffer access (axis 0)
ghost commented 9 years ago

Of course, I'll check the same method for LLSparseMatrix and CSRSparseMatrix...

ghost commented 9 years ago

Actually, it does work. Some other pieces of code don't work... ;-)