git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@330198 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
86fa786c16
commit
ab63431fbe
|
@ -56,10 +56,9 @@ RealMatrix m = new RealMatrixImpl(matrixData);
|
||||||
|
|
||||||
// One more with three rows, two columns
|
// One more with three rows, two columns
|
||||||
double[][] matrixData2 = { {1d,2d}, {2d,5d}, {1d, 7d}};
|
double[][] matrixData2 = { {1d,2d}, {2d,5d}, {1d, 7d}};
|
||||||
RealMatrix n = new RealMatixImpl(matrixData2);
|
RealMatrix n = new RealMatrixImpl(matrixData2);
|
||||||
|
|
||||||
// Note: constructor makes a
|
// Note: The constructor copies the input double[][] array.
|
||||||
// Fresh copy of the input double[][] array
|
|
||||||
|
|
||||||
// Now multiply m by n
|
// Now multiply m by n
|
||||||
RealMatrix p = m.multiply(n);
|
RealMatrix p = m.multiply(n);
|
||||||
|
|
Loading…
Reference in New Issue