Python 单位矩阵 identity matrix
junjunjiang
这个作者很懒,什么都没留下…
展开
-
python Sparse matrices 单位矩阵
identity(n[, dtype, format]) Identity matrix in sparse format Returns an identity matrix with shape (n,n) using a given sparse format and dtype.创建n X n单位矩阵。format:bsr_matrix(arg1[, shape, dtype,原创 2016-02-16 09:44:46 · 3459 阅读 · 0 评论 -
Save / load scipy array,sparse csr_matrix
A csr_matrix has 3 data attributes that matter: .data, .indices, and .indptr. All are simple ndarrays, so numpy.save will work on them. Save the three arrays with numpy.save or numpy.savez, lo转载 2016-02-23 09:58:07 · 1148 阅读 · 0 评论