我想M+1
通过N
DenseMatrix(DM_a
下)删除行,以生成另一个 DenseMatrix(DM_b
)。像这样的东西:
K
DM_a = 0 +-------------------+
| |
| |
| |
M | |
| |
| |
| |
N +-------------------+
K
DM_b = 0 +-------------------+
| |
| |
| |
M +-------------------+
用这样的切片来做到这一点是最好的(最有效的):val DM_b = DM_a(0 to M, ::)
还是我应该映射padRight
到的每一列DM_a
?