MCPcopy Create free account
hub / github.com/diffplug/matfilerw / getArray

Method getArray

src/main/java/com/jmatio/types/MLDouble.java:89–100  ·  view source on GitHub ↗

Gets two-dimensional real array. @return - 2D real array

()

Source from the content-addressed store, hash-verified

87 * @return - 2D real array
88 */
89 public double[][] getArray() {
90 double[][] result = new double[getM()][];
91
92 for (int m = 0; m < getM(); m++) {
93 result[m] = new double[getN()];
94
95 for (int n = 0; n < getN(); n++) {
96 result[m][n] = get(m, n);
97 }
98 }
99 return result;
100 }
101
102 /**
103 * Casts <code>Double[]</code> to <code>double[]</code>

Callers

nothing calls this directly

Calls 3

getMMethod · 0.80
getNMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected