public double[] readToDoubleArray() throws IOException { // allocate memory for array elements int elements = size / sizeOf(); double[] ad = new double[elements]; MatFileInputStream mfis = new MatFileInputStream(buf, type); for (int i = 0; i < elements; i++) { ad[i] = mfis.readDouble(); } // skip padding if (padding > 0) { buf.position(buf.position() + padding); } return ad; }
dest.putDouble( readDouble() ); continue; case BYTE: