【发布时间】:2017-10-19 11:24:58
【问题描述】:
我想获取scipy.sparse.csr_matrix 中不为空的行的索引。例如:
A = [ 0 0 0 0 0 1
0 0 0 0 0 0
1 1 0 0 0 0 ]
期望的输出:
indices = [0, 2]
【问题讨论】:
-
零为空???
-
“非空”是指“全零”?
标签: python scipy sparse-matrix