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

Method getArray

src/main/java/com/jmatio/types/MLInt8.java:83–94  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 4

testMLDoubleArrayMethod · 0.45
testMLUInt8ArrayMethod · 0.45
parseMCOSMethod · 0.45
readMatrixMethod · 0.45

Calls 3

getMMethod · 0.80
getNMethod · 0.80
getRealMethod · 0.45

Tested by 2

testMLDoubleArrayMethod · 0.36
testMLUInt8ArrayMethod · 0.36