📜  csr_matric scipy lib - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:14.358000             🧑  作者: Mango

代码示例1
>>> 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)