2013-11-15 142 views
2

矩阵并置矩阵上的这种类型的MATLAB运算的math.net等价物是什么?math.net矩阵并列

A = [2 2; 3 3] 
B = [4 4; 5 5] 
C = [A B] 
D = [A; B] 

是否有一个比较MATLAB/NUMPY与Math.net的备忘单?这对未来可能有帮助。 谢谢。在文档

回答

3

找到一个比较赏心悦目的解决方案:

let C = A.append(B) 
let D = B.stack(D) 

感谢您的帮助。

0

看这里:http://nmath.sourceforge.net/doc/numerics/

我认为最好的解决办法是这样的:

let retmatrix = Matrix(A.RowCount + B.RowCount, A.ColumnCount) 
retmatrix.SetMatrix(0,A.RowCount,0,A.ColumnCount,A) 
retmatrix.SetMatrix(A.RowCount,A.RowCount+B.RowCount,0,B.RowCount,B)