SciPy - Sparse Matrices (scipy.sparse)
What is wrong with this code?
from scipy.sparse import csr_matrix import numpy as np row = np.array([0, 1, 2]) col = np.array([0, 1]) data = np.array([1, 2, 3]) sparse = csr_matrix((data, (row, col)))
