/** * {@inheritDoc} */ public synchronized double[][] toDenseArray() { return m.toDenseArray(); } }
/** * {@inheritDoc} */ public double[][] toDenseArray() { return m.toDenseArray(); } }
/** * {@inheritDoc} */ public synchronized double[][] toDenseArray() { return m.toDenseArray(); } }
/** * {@inheritDoc} */ public double[][] toDenseArray() { return m.toDenseArray(); } }
/** * Reads in the content of the file as a two dimensional Java array matrix. * This method has been deprecated in favor of using purely {@link Matrix} * objects for all operations. If a Java array is needed, the {@link * Matrix#toArray()} method may be used to generate one. * * @return a two-dimensional array of the matrix contained in provided file */ @Deprecated public static double[][] readMatrixArray(File input, Format format) throws IOException { // Use the same code path for reading the Matrix object and then dump to // an array. This comes at a potential 2X space usage, but greatly // reduces the possibilities for bugs. return readMatrix(input, format).toDenseArray(); }
/** * Reads in the content of the file as a two dimensional Java array matrix. * This method has been deprecated in favor of using purely {@link Matrix} * objects for all operations. If a Java array is needed, the {@link * Matrix#toArray()} method may be used to generate one. * * @return a two-dimensional array of the matrix contained in provided file */ @Deprecated public static double[][] readMatrixArray(File input, Format format) throws IOException { // Use the same code path for reading the Matrix object and then dump to // an array. This comes at a potential 2X space usage, but greatly // reduces the possibilities for bugs. return readMatrix(input, format).toDenseArray(); }
return coltSVD(m.toDenseArray(), !(m instanceof SparseMatrix), dimensions); case JAMA: return jamaSVD(m.toDenseArray(), dimensions);
return SvdlibjDriver.svd(m, dimensions); case COLT: return coltSVD(m.toDenseArray(), !(m instanceof SparseMatrix), dimensions); case JAMA: return jamaSVD(m.toDenseArray(), dimensions);