Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何方便有效的方法可以从SparseMatrixojAlgo 中删除行(或列)?我试图RowView从我的矩阵中检索,然后将应该保持元素一个元素的行复制到新矩阵,但这不是非常有效的方法。
SparseMatrix
RowView
做同样的事情,但使用ElementView2D从nonzeros()方法中获得的会更有效。
ElementView2D
nonzeros()