/** * Loads the input values from the BLAS-ordered (dense, column-major) vector * d into this. * * @param d The values to load into this * @param numRows The number of rows in d * @param numCols The number of columns in d * @throws IllegalArgumentException if the input dimensions don't match * this's dimensions (that's why this is a private method -- it should only * be called by people who know what they're doing). */ private void fromBlas( final double d[], final int numRows, final int numCols) { if ((getNumRows() != numRows) || (getNumColumns() != numCols)) { throw new IllegalArgumentException("Unable to convert from BLAS of " + "different size: (" + getNumRows() + " != " + numRows + ") || (" + getNumColumns() + " != " + numCols + ")"); } for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numCols; ++j) { this.rows[i].values[j] = blasElement(i, j, d, numRows, numCols); } } }
/** * Loads the input values from the BLAS-ordered (dense, column-major) vector * d into this. * * @param d The values to load into this * @param numRows The number of rows in d * @param numCols The number of columns in d * @throws IllegalArgumentException if the input dimensions don't match * this's dimensions (that's why this is a private method -- it should only * be called by people who know what they're doing). */ private void fromBlas( final double d[], final int numRows, final int numCols) { if ((getNumRows() != numRows) || (getNumColumns() != numCols)) { throw new IllegalArgumentException("Unable to convert from BLAS of " + "different size: (" + getNumRows() + " != " + numRows + ") || (" + getNumColumns() + " != " + numCols + ")"); } for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numCols; ++j) { this.rows[i].values[j] = blasElement(i, j, d, numRows, numCols); } } }
/** * Loads the input values from the BLAS-ordered (dense, column-major) vector * d into this. * * @param d The values to load into this * @param numRows The number of rows in d * @param numCols The number of columns in d * @throws IllegalArgumentException if the input dimensions don't match * this's dimensions (that's why this is a private method -- it should only * be called by people who know what they're doing). */ private void fromBlas( final double d[], final int numRows, final int numCols) { if ((getNumRows() != numRows) || (getNumColumns() != numCols)) { throw new IllegalArgumentException("Unable to convert from BLAS of " + "different size: (" + getNumRows() + " != " + numRows + ") || (" + getNumColumns() + " != " + numCols + ")"); } for (int i = 0; i < numRows; ++i) { for (int j = 0; j < numCols; ++j) { this.rows[i].values[j] = blasElement(i, j, d, numRows, numCols); } } }
result.U.setElement(i, j, blasElement(i, j, A, m, n)); result.L.setElement(i, j, blasElement(i, j, A, m, n));
result.U.setElement(i, j, blasElement(i, j, A, m, n)); result.L.setElement(i, j, blasElement(i, j, A, m, n));
result.U.setElement(i, j, blasElement(i, j, A, m, n)); result.L.setElement(i, j, blasElement(i, j, A, m, n));
result.R.setElement(i, j, blasElement(i, j, A, m, n)); for (int j = i + 1; j < m; ++j) v.values[j] = blasElement(j, i, A, m, n);
result.R.setElement(i, j, blasElement(i, j, A, m, n)); for (int j = i + 1; j < m; ++j) v.values[j] = blasElement(j, i, A, m, n);
result.R.setElement(i, j, blasElement(i, j, A, m, n)); for (int j = i + 1; j < m; ++j) v.values[j] = blasElement(j, i, A, m, n);