Please enable JavaScript.
Coggle requires JavaScript to display documents.
SCIPY SPARSE MATRIX (COO (Constructors ACCEPT (shape param only to create…
SCIPY SPARSE MATRIX
COO
-
sparse,coo_matrix((data, (row, column)), shape, dtype)
-
-
NO slicing, no arithmetics (directly)
Constructors ACCEPT
-
a triplet of the form (data, (row, column))
-
-
USAGE
when converting to CSR, CSC sparse matrix, duplicated entries will be summed up together
-
-
CSR
USAGE
FAST computation for functions in linear solver, etc...
-
Facilitate row operation such as multiplication, sum, etc...
CONSTRUCTORS
-
triplet (data, (row, column))
-
tuple of (data, indices, indptr)
-
indices of length K which indicates specific
column indices for each row.
Row i has columns from indptr[i]:indptr[i+1]
-
-
-