/** * Reads the input double array (dense, column-major as output by BLAS) and * creates a new dense matrix with those values. * * @param d The BLAS representation of the matrix (must be length * numRows*numCols) * @param numRows The number of rows in d * @param numCols The number of columns in d * @return A new DenseMatrix with the specified size and elements stored in * d (column major order) */ static DenseMatrix createFromBlas( final double d[], final int numRows, final int numCols) { DenseMatrix result = new DenseMatrix(numRows, numCols); result.fromBlas(d, numRows, numCols); return result; }
/** * Reads the input double array (dense, column-major as output by BLAS) and * creates a new dense matrix with those values. * * @param d The BLAS representation of the matrix (must be length * numRows*numCols) * @param numRows The number of rows in d * @param numCols The number of columns in d * @return A new DenseMatrix with the specified size and elements stored in * d (column major order) */ static DenseMatrix createFromBlas( final double d[], final int numRows, final int numCols) { DenseMatrix result = new DenseMatrix(numRows, numCols); result.fromBlas(d, numRows, numCols); return result; }
/** * Reads the input double array (dense, column-major as output by BLAS) and * creates a new dense matrix with those values. * * @param d The BLAS representation of the matrix (must be length * numRows*numCols) * @param numRows The number of rows in d * @param numCols The number of columns in d * @return A new DenseMatrix with the specified size and elements stored in * d (column major order) */ static DenseMatrix createFromBlas( final double d[], final int numRows, final int numCols) { DenseMatrix result = new DenseMatrix(numRows, numCols); result.fromBlas(d, numRows, numCols); return result; }