Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

csr_matric scipy lib

>>> import numpy as np
>>> from scipy.sparse import csr_matrix
>>> csr_matrix((3, 4), dtype=np.int8).toarray()
array([[0, 0, 0, 0],
       [0, 0, 0, 0],
       [0, 0, 0, 0]], dtype=int8)
Source by docs.scipy.org #
 
PREVIOUS NEXT
Tagged: #scipy #lib
ADD COMMENT
Topic
Name
6+9 =