What is returned by np.asarray() called on a sparse matrix as-it-is?

后端 未结 0 765
感动是毒
感动是毒 2020-12-02 04:29
> import scipy
> import numpy as np
> smat_csr = scipy.sparse.csr_matrix([[0,0,1],[0,1,0],[0,0,0]])
> print(smat_csr)

(0, 2)  1
(1, 1)  1

> print(sm         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题