I'm not sure if I'm in over my head here, or being naive, but I'd love to get this integrated into Scipy at some point (or work on an N-D replacement for thescipy.sparse.spmatrixsubclasses, if that's not feasible). Possible simplifications to consider: ...
Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up {...
X =SparseUtils.sparseMatrix(vals, rowInds, colInds, A.shape,"scipy", storagetype="col") self.assertTrue(X.dtype==A.dtype) self.assertTrue(X.shape==A.shape) self.assertTrue(type(X)== scipy.sparse.csc_matrix) nptst.assert_array_equal(X.toarray(), A) X =SparseUtils.sparseMatrix(va...
X =SparseUtils.sparseMatrix(vals, rowInds, colInds, A.shape,"scipy", storagetype="row") self.assertTrue(X.dtype==A.dtype) self.assertTrue(X.shape==A.shape) self.assertTrue(type(X)== scipy.sparse.csr_matrix) nptst.assert_array_equal(X.toarray(), A) X =SparseUtils.sparseMatrix(va...