2013-11-15 112 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)