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

Method getArray

src/main/java/com/jmatio/types/MLInt32.java:84–95  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getMMethod · 0.80
getNMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected