Re: [Numpy-discussion] np.dot and scipy sparse matrices
e of? Is ndarray.__mul__ supposed to work with sparse matrices? AFAIK scipy does not provide a scipy.sparse.dot function and spmatrix.dot only allows for "multiplication from the rhs" (ok.. one could directly call __rmul__ but that's ugly). best,
[Numpy-discussion] np.dot and scipy sparse matrices
A = np.random.rand(10, 10) S = sp.csr_matrix(A) _ = np.dot(A, A) # this works OK _ = np.dot(S, S) # this segfaults! thanks, Peter -- Peter Prettenhofer ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/lis