@Override public void set(int row, int column, double value) { synchronized (lock[column]) { A.set(row, column, value); } }
public void setElement( int rowIndex, int columnIndex, double value) { this.internalMatrix.set(rowIndex, columnIndex, value); }
@Override public void set(int row, int column, double value) { synchronized (lock[row]) { A.set(row, column, value); } }
@Override public void set(int row, int column, double value) { synchronized (lock[column]) { A.set(row, column, value); } }
@Override public void set( final int rowIndex, final int columnIndex, final double value) { this.internalMatrix.set(rowIndex, columnIndex, value); }
@Override public void set( final int rowIndex, final int columnIndex, final double value) { this.internalMatrix.set(rowIndex, columnIndex, value); }
@Override public void set(int row, int column, double value) { synchronized (lock[row]) { A.set(row, column, value); } }
@Override public void set( final int rowIndex, final int columnIndex, final double value) { this.internalMatrix.set(rowIndex, columnIndex, value); }
public void setElement( int rowIndex, int columnIndex, double value) { this.internalMatrix.set(rowIndex, columnIndex, value); }
public void setElement( int rowIndex, int columnIndex, double value) { this.internalMatrix.set(rowIndex, columnIndex, value); }
@Override public synchronized void set(int row, int column, double value) { A.set(row, column, value); }
@Override public synchronized void set(int row, int column, double value) { A.set(row, column, value); }
@Override public void set(int row, int column, double value) { A.set(this.row[row], this.column[column], value); }
@Override public void set(int row, int column, double value) { A.set(this.row[row], this.column[column], value); }
/** * Returns the column pivoting matrix. This function allocates a new Matrix * to be returned, a more cheap option is tu use {@link #getPVector()}. */ public Matrix getP() { Matrix P = new DenseMatrix(jpvt.length, jpvt.length); for (int i = 0; i < jpvt.length; i++) { P.set(jpvt[i], i, 1); } return P; }
/** * Returns the column pivoting matrix. This function allocates a new Matrix * to be returned, a more cheap option is tu use {@link #getPVector()}. */ public Matrix getP() { Matrix P = new DenseMatrix(jpvt.length, jpvt.length); for (int i = 0; i < jpvt.length; i++) { P.set(jpvt[i], i, 1); } return P; }
/** * Populates a matrix with random numbers drawn from a uniform distribution * between 0 and 1 * * @param A * Matrix to populate */ public static Matrix random(Matrix A) { for (int j = 0; j < A.numColumns(); ++j) for (int i = 0; i < A.numRows(); ++i) A.set(i, j, Math.random()); return A; }
/** * Populates a matrix with random numbers drawn from a uniform distribution * between 0 and 1 * * @param A * Matrix to populate */ public static Matrix random(Matrix A) { for (int j = 0; j < A.numColumns(); ++j) for (int i = 0; i < A.numRows(); ++i) A.set(i, j, Math.random()); return A; }
public Matrix transpose(Matrix B) { checkTranspose(B); if (B == this) return transpose(); B.zero(); for (MatrixEntry e : this) B.set(e.column(), e.row(), e.get()); return B; }
public Matrix transpose(Matrix B) { checkTranspose(B); if (B == this) return transpose(); B.zero(); for (MatrixEntry e : this) B.set(e.column(), e.row(), e.get()); return B; }