SciPy - Sparse Linear Algebra
You have a large sparse matrix representing connections in a social network. You want to solve the system Ax = b efficiently. Which approach using scipy sparse matrix factorizations is best and why?
import numpy as np from scipy.sparse import csc_matrix from scipy.sparse.linalg import splu A = csc_matrix(large_sparse_matrix_data) b = np.array(large_vector_b)
