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

Method getArray

src/main/java/com/jmatio/types/MLInt16.java:88–99  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getMMethod · 0.80
getNMethod · 0.80
getRealMethod · 0.45

Tested by

no test coverage detected