MCPcopy Index your code
hub / github.com/diffplug/matfilerw / getArray

Method getArray

src/main/java/com/jmatio/types/MLInt64.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 long[][] getArray() {
90 long[][] result = new long[getM()][];
91
92 for (int m = 0; m < getM(); m++) {
93 result[m] = new long[getN()];
94
95 for (int n = 0; n < getN(); n++) {
96 result[m][n] = getReal(m, n);
97 }
98 }
99 return result;
100 }
101
102 /**
103 * Casts <code>Double[]</code> to <code>byte[]</code>

Callers

nothing calls this directly

Calls 3

getMMethod · 0.80
getNMethod · 0.80
getRealMethod · 0.45

Tested by

no test coverage detected