Method Summary |
|
public BigMatrix | add(BigMatrix m) Compute the sum of this and m . |
public BigMatrix | copy() Create a new BigMatrix which is a copy of this. |
public boolean | equals(Object object) Returns true iff object is a
BigMatrixImpl instance with the same dimensions as this
and all corresponding matrix entries are equal. |
public BigDecimal[] | getColumn(int col) Returns the entries in column number col as an array.
Column indices start at 0. |
public double[] | getColumnAsDoubleArray(int col) Returns the entries in column number col as an array
of double values.
Column indices start at 0. |
public int | getColumnDimension() Returns the number of columns in the matrix. |
public BigMatrix | getColumnMatrix(int column) Returns the entries in column number column
as a column matrix. |
public BigDecimal[][] | getData() Returns matrix entries as a two-dimensional array. |
public double[][] | getDataAsDoubleArray() Returns matrix entries as a two-dimensional array. |
public BigDecimal[][] | getDataRef() Returns a reference to the underlying data array. |
public BigDecimal | getDeterminant() Returns the determinant of this matrix. |
public BigDecimal | getEntry(int row, int column) Returns the entry in the specified row and column. |
public double | getEntryAsDouble(int row, int column) Returns the entry in the specified row and column as a double. |
protected BigMatrix | getIdentity(int dimension) Returns dimension x dimension identity matrix. |
protected BigMatrix | getLUMatrix() Returns the LU decomposition as a BigMatrix.
Returns a fresh copy of the cached LU matrix if this has been computed;
otherwise the composition is computed and cached for use by other methods. |
public BigDecimal | getNorm() Returns the
maximum absolute row sum norm of the matrix. |
protected int[] | getPermutation() Returns the permutation associated with the lu decomposition.
The entries of the array represent a permutation of the numbers 0, ... |
public int | getRoundingMode() |
public BigDecimal[] | getRow(int row) Returns the entries in row number row as an array.
Row indices start at 0. |
public double[] | getRowAsDoubleArray(int row) Returns the entries in row number row as an array
of double values.
Row indices start at 0. |
public int | getRowDimension() Returns the number of rows in the matrix. |
public BigMatrix | getRowMatrix(int row) Returns the entries in row number row
as a row matrix. |
public int | getScale() Sets the scale for division operations. |
public BigMatrix | getSubMatrix(int startRow, int endRow, int startColumn, int endColumn) Gets a submatrix. |
public BigMatrix | getSubMatrix(int[] selectedRows, int[] selectedColumns) Gets a submatrix. |
public BigDecimal | getTrace() Returns the
trace of the matrix (the sum of the elements on the main diagonal). |
public int | hashCode() Computes a hashcode for the matrix. |
public BigMatrix | inverse() Returns the inverse matrix if this matrix is invertible. |
public boolean | isSingular() |
public boolean | isSquare() |
public void | luDecompose() Computes a new
LU decompostion for this matrix, storing the result for use by other methods. |
public BigMatrix | multiply(BigMatrix m) Returns the result of postmultiplying this by m . |
public BigDecimal[] | operate(BigDecimal[] v) Returns the result of multiplying this by the vector v . |
public BigDecimal[] | operate(double[] v) Returns the result of multiplying this by the vector v . |
public BigMatrix | preMultiply(BigMatrix m) Returns the result premultiplying this by m . |
public BigDecimal[] | preMultiply(BigDecimal[] v) Returns the (row) vector result of premultiplying this by the vector v . |
public BigMatrix | scalarAdd(BigDecimal d) Returns the result of adding d to each entry of this. |
public BigMatrix | scalarMultiply(BigDecimal d) |
public void | setRoundingMode(int roundingMode) Sets the rounding mode for decimal divisions. |
public void | setScale(int scale) Sets the scale for division operations. |
public void | setSubMatrix(BigDecimal[][] subMatrix, int row, int column) Replace the submatrix starting at row, column using data in
the input subMatrix array. |
public BigDecimal[] | solve(BigDecimal[] b) Returns a matrix of (column) solution vectors for linear systems with
coefficient matrix = this and constant vectors = columns of
b . |
public BigDecimal[] | solve(double[] b) Returns a matrix of (column) solution vectors for linear systems with
coefficient matrix = this and constant vectors = columns of
b . |
public BigMatrix | solve(BigMatrix b) Returns a matrix of (column) solution vectors for linear systems with
coefficient matrix = this and constant vectors = columns of
b . |
public BigMatrix | subtract(BigMatrix m) Compute this minus m . |
public String | toString() |
public BigMatrix | transpose() Returns the transpose matrix. |