public static float[] getMatrix(int mtxType) { int size = getMatrixSize(mtxType); int offset = getMatrixOffset(mtxType); float[] mtx = new float[size]; for (int i = 0; i < size; i++) { mtx[i] = NativeUtils.getCoreMtxArray(offset + i); } return(mtx); }