getrow — SciPy v1.15.3 Manual (original) (raw)

scipy.sparse.dok_matrix.

dok_matrix.getrow(i)[source]#

Returns a copy of row i of the matrix, as a (1 x n) sparse matrix (row vector).