FieldMatrix
with a BigReal
parameter@Deprecated public interface BigMatrix extends AnyMatrix
Matrix element indexing is 0-based -- e.g., getEntry(0, 0)
returns the element in the first row, first column of the matrix.
Modifier and Type | Method and Description |
---|---|
BigMatrix |
add(BigMatrix m)
Deprecated.
Compute the sum of this and m.
|
BigMatrix |
copy()
Deprecated.
Returns a (deep) copy of this.
|
BigDecimal[] |
getColumn(int col)
Deprecated.
Returns the entries in column number
col as an array. |
double[] |
getColumnAsDoubleArray(int col)
Deprecated.
Returns the entries in column number
col as an array
of double values. |
BigMatrix |
getColumnMatrix(int column)
Deprecated.
Returns the entries in column number
column
as a column matrix. |
BigDecimal[][] |
getData()
Deprecated.
Returns matrix entries as a two-dimensional array.
|
double[][] |
getDataAsDoubleArray()
Deprecated.
Returns matrix entries as a two-dimensional array.
|
BigDecimal |
getDeterminant()
Deprecated.
Returns the determinant of this matrix.
|
BigDecimal |
getEntry(int row,
int column)
Deprecated.
Returns the entry in the specified row and column.
|
double |
getEntryAsDouble(int row,
int column)
Deprecated.
Returns the entry in the specified row and column as a double.
|
BigDecimal |
getNorm()
Deprecated.
Returns the
maximum absolute row sum norm of the matrix.
|
int |
getRoundingMode()
Deprecated.
Gets the rounding mode
|
BigDecimal[] |
getRow(int row)
Deprecated.
Returns the entries in row number
row as an array. |
double[] |
getRowAsDoubleArray(int row)
Deprecated.
Returns the entries in row number
row as an array
of double values. |
BigMatrix |
getRowMatrix(int row)
Deprecated.
Returns the entries in row number
row
as a row matrix. |
BigMatrix |
getSubMatrix(int[] selectedRows,
int[] selectedColumns)
Deprecated.
Gets a submatrix.
|
BigMatrix |
getSubMatrix(int startRow,
int endRow,
int startColumn,
int endColumn)
Deprecated.
Gets a submatrix.
|
BigDecimal |
getTrace()
Deprecated.
Returns the
trace of the matrix (the sum of the elements on the main diagonal).
|
BigMatrix |
inverse()
Deprecated.
Returns the inverse of this matrix.
|
BigMatrix |
multiply(BigMatrix m)
Deprecated.
Returns the result of postmultiplying this by m.
|
BigDecimal[] |
operate(BigDecimal[] v)
Deprecated.
Returns the result of multiplying this by the vector
v . |
BigDecimal[] |
preMultiply(BigDecimal[] v)
Deprecated.
Returns the (row) vector result of premultiplying this by the vector
v . |
BigMatrix |
preMultiply(BigMatrix m)
Deprecated.
Returns the result premultiplying this by
m . |
BigMatrix |
scalarAdd(BigDecimal d)
Deprecated.
Returns the result of adding d to each entry of this.
|
BigMatrix |
scalarMultiply(BigDecimal d)
Deprecated.
Returns the result multiplying each entry of this by d.
|
BigDecimal[] |
solve(BigDecimal[] b)
Deprecated.
Returns the solution vector for a linear system with coefficient
matrix = this and constant vector =
b . |
BigMatrix |
solve(BigMatrix b)
Deprecated.
Returns a matrix of (column) solution vectors for linear systems with
coefficient matrix = this and constant vectors = columns of
b . |
BigMatrix |
subtract(BigMatrix m)
Deprecated.
Compute this minus m.
|
BigMatrix |
transpose()
Deprecated.
Returns the transpose of this matrix.
|
getColumnDimension, getRowDimension, isSquare
BigMatrix copy()
BigMatrix add(BigMatrix m) throws IllegalArgumentException
m
- matrix to be addedIllegalArgumentException
- if m is not the same size as thisBigMatrix subtract(BigMatrix m) throws IllegalArgumentException
m
- matrix to be subtractedIllegalArgumentException
- if m is not the same size as thisBigMatrix scalarAdd(BigDecimal d)
d
- value to be added to each entryBigMatrix scalarMultiply(BigDecimal d)
d
- value to multiply all entries byBigMatrix multiply(BigMatrix m) throws IllegalArgumentException
m
- matrix to postmultiply byIllegalArgumentException
- if columnDimension(this) != rowDimension(m)BigMatrix preMultiply(BigMatrix m) throws IllegalArgumentException
m
.m
- matrix to premultiply byIllegalArgumentException
- if rowDimension(this) != columnDimension(m)BigDecimal[][] getData()
double[][] getDataAsDoubleArray()
int getRoundingMode()
BigDecimal getNorm()
BigMatrix getSubMatrix(int startRow, int endRow, int startColumn, int endColumn) throws MatrixIndexException
startRow
- Initial row indexendRow
- Final row indexstartColumn
- Initial column indexendColumn
- Final column indexMatrixIndexException
- if the indices are not validBigMatrix getSubMatrix(int[] selectedRows, int[] selectedColumns) throws MatrixIndexException
selectedRows
- Array of row indices.selectedColumns
- Array of column indices.MatrixIndexException
- if row or column selections are not validBigMatrix getRowMatrix(int row) throws MatrixIndexException
row
as a row matrix. Row indices start at 0.row
- the row to be fetchedMatrixIndexException
- if the specified row index is invalidBigMatrix getColumnMatrix(int column) throws MatrixIndexException
column
as a column matrix. Column indices start at 0.column
- the column to be fetchedMatrixIndexException
- if the specified column index is invalidBigDecimal[] getRow(int row) throws MatrixIndexException
row
as an array.
Row indices start at 0. A MatrixIndexException
is thrown
unless 0 <= row < rowDimension.
row
- the row to be fetchedMatrixIndexException
- if the specified row index is not validdouble[] getRowAsDoubleArray(int row) throws MatrixIndexException
row
as an array
of double values.
Row indices start at 0. A MatrixIndexException
is thrown
unless 0 <= row < rowDimension.
row
- the row to be fetchedMatrixIndexException
- if the specified row index is not validBigDecimal[] getColumn(int col) throws MatrixIndexException
col
as an array.
Column indices start at 0. A MatrixIndexException
is thrown
unless 0 <= column < columnDimension.
col
- the column to be fetchedMatrixIndexException
- if the specified column index is not validdouble[] getColumnAsDoubleArray(int col) throws MatrixIndexException
col
as an array
of double values.
Column indices start at 0. A MatrixIndexException
is thrown
unless 0 <= column < columnDimension.
col
- the column to be fetchedMatrixIndexException
- if the specified column index is not validBigDecimal getEntry(int row, int column) throws MatrixIndexException
Row and column indices start at 0 and must satisfy
0 <= row < rowDimension
0 <= column < columnDimension
MatrixIndexException
is thrown.row
- row location of entry to be fetchedcolumn
- column location of entry to be fetchedMatrixIndexException
- if the row or column index is not validdouble getEntryAsDouble(int row, int column) throws MatrixIndexException
Row and column indices start at 0 and must satisfy
0 <= row < rowDimension
0 <= column < columnDimension
MatrixIndexException
is thrown.row
- row location of entry to be fetchedcolumn
- column location of entry to be fetchedMatrixIndexException
- if the row or column index is not validBigMatrix transpose()
BigMatrix inverse() throws InvalidMatrixException
InvalidMatrixException
- if
this is not invertibleBigDecimal getDeterminant() throws InvalidMatrixException
InvalidMatrixException
- if
matrix is not squareBigDecimal getTrace()
BigDecimal[] operate(BigDecimal[] v) throws IllegalArgumentException
v
.v
- the vector to operate onIllegalArgumentException
- if columnDimension != v.size()BigDecimal[] preMultiply(BigDecimal[] v) throws IllegalArgumentException
v
.v
- the row vector to premultiply byIllegalArgumentException
- if rowDimension != v.size()BigDecimal[] solve(BigDecimal[] b) throws IllegalArgumentException, InvalidMatrixException
b
.b
- constant vectorIllegalArgumentException
- if this.rowDimension != b.lengthInvalidMatrixException
- if this matrix is not square or is singularBigMatrix solve(BigMatrix b) throws IllegalArgumentException, InvalidMatrixException
b
.b
- matrix of constant vectors forming RHS of linear systems to
to solveIllegalArgumentException
- if this.rowDimension != row dimensionInvalidMatrixException
- if this matrix is not square or is singularCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.