public class LowerTriangularMatrix extends SquareMatrix
| Constructor and Description |
|---|
LowerTriangularMatrix(int order)
Simple constructor.
|
LowerTriangularMatrix(int order,
double[] data)
Simple constructor.
|
LowerTriangularMatrix(LowerTriangularMatrix l)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Matrix |
duplicate()
Polymorphic copy operator.
|
double |
getDeterminant(double epsilon)
Get the determinant of the matrix.
|
org.spaceroots.mantissa.linalg.NonNullRange |
getRangeForColumn(int j)
Set a range to the non null part covered by a column.
|
org.spaceroots.mantissa.linalg.NonNullRange |
getRangeForRow(int i)
Set a range to the non null part covered by a row.
|
void |
selfAdd(LowerTriangularMatrix l)
Add a matrix to the instance.
|
void |
selfSub(LowerTriangularMatrix l)
Substract a matrix from the instance.
|
void |
setElement(int i,
int j,
double value)
Set a matrix element.
|
Matrix |
solve(Matrix b,
double epsilon)
Solve the A.X = B equation.
|
getInverse, solveadd, getColumns, getElement, getRows, getTranspose, mul, mul, selfMul, sub, toStringpublic LowerTriangularMatrix(int order)
order - order of the matrixpublic LowerTriangularMatrix(int order,
double[] data)
order - order of the matrixdata - table of the matrix elements (stored row after row)public LowerTriangularMatrix(LowerTriangularMatrix l)
l - lower triangular matrix to copypublic Matrix duplicate()
MatrixObject.clone()
method, except that it has public access, it doesn't throw any
specific exception and it returns a Matrix.public void setElement(int i,
int j,
double value)
MatrixsetElement in class Matrixi - row index, from 0 to rows - 1j - column index, from 0 to cols - 1value - value of the elementMatrix.getElement(int, int)public void selfAdd(LowerTriangularMatrix l)
l - lower triangular matrix to addjava.lang.IllegalArgumentException - if there is a dimension mismatchpublic void selfSub(LowerTriangularMatrix l)
l - lower triangular matrix to substractjava.lang.IllegalArgumentException - if there is a dimension mismatchpublic double getDeterminant(double epsilon)
SquareMatrixgetDeterminant in class SquareMatrixepsilon - threshold on matrix elements below which the
matrix is considered singular (this is used by the derived
classes that use a factorization to compute the determinant)public Matrix solve(Matrix b, double epsilon) throws SingularMatrixException
SquareMatrixsolve in class SquareMatrixb - second term of the equationepsilon - threshold on matrix elements below which the
matrix is considered singularSingularMatrixException - if the matrix is singularpublic org.spaceroots.mantissa.linalg.NonNullRange getRangeForRow(int i)
MatrixgetRangeForRow in class Matrixi - index of the rowMatrix.getRangeForColumn(int)public org.spaceroots.mantissa.linalg.NonNullRange getRangeForColumn(int j)
MatrixgetRangeForColumn in class Matrixj - index of the columnMatrix.getRangeForRow(int)Copyright © 2001-2007 Luc Maisonobe. All Rights Reserved.