public class SparseDComplexAlgebra extends Object
Modifier and Type | Field and Description |
---|---|
static SparseDComplexAlgebra |
DEFAULT
A default Algebra object; has
DComplexProperty.DEFAULT attached for
tolerance. |
static SparseDComplexAlgebra |
ZERO
A default Algebra object; has
DComplexProperty.ZERO attached for
tolerance. |
Constructor and Description |
---|
SparseDComplexAlgebra()
Constructs a new instance with an equality tolerance given by
Property.DEFAULT.tolerance().
|
SparseDComplexAlgebra(double tolerance)
Constructs a new instance with the given equality tolerance.
|
Modifier and Type | Method and Description |
---|---|
SparseDComplexCholeskyDecomposition |
chol(DComplexMatrix2D matrix,
int order)
Constructs and returns the Cholesky-decomposition of the given matrix.
|
Object |
clone()
Returns a copy of the receiver.
|
double[] |
det(DComplexMatrix2D A)
Returns the determinant of matrix A.
|
SparseDComplexLUDecomposition |
lu(DComplexMatrix2D matrix,
int order)
Constructs and returns the LU-decomposition of the given matrix.
|
double |
norm1(DComplexMatrix2D A)
Returns the 1-norm of matrix A, which is the maximum absolute
column sum.
|
double |
normInfinity(DComplexMatrix2D A)
Returns the infinity norm of matrix A, which is the maximum
absolute row sum.
|
DComplexProperty |
property()
Returns the property object attached to this Algebra, defining tolerance.
|
SparseDComplexQRDecomposition |
qr(DComplexMatrix2D matrix,
int order)
Constructs and returns the QR-decomposition of the given matrix.
|
void |
setProperty(DComplexProperty property)
Attaches the given property object to this Algebra, defining tolerance.
|
DComplexMatrix1D |
solve(DComplexMatrix2D A,
DComplexMatrix1D b)
Solves A*x = b.
|
public static final SparseDComplexAlgebra DEFAULT
DComplexProperty.DEFAULT
attached for
tolerance. Allows ommiting to construct an Algebra object time and again.
Note that this Algebra object is immutable. Any attempt to assign a new
Property object to it (via method setProperty), or to alter the
tolerance of its property object (via
property().setTolerance(...)) will throw an exception.public static final SparseDComplexAlgebra ZERO
DComplexProperty.ZERO
attached for
tolerance. Allows ommiting to construct an Algebra object time and again.
Note that this Algebra object is immutable. Any attempt to assign a new
Property object to it (via method setProperty), or to alter the
tolerance of its property object (via
property().setTolerance(...)) will throw an exception.public SparseDComplexAlgebra()
public SparseDComplexAlgebra(double tolerance)
tolerance
- the tolerance to be used for equality operations.public SparseDComplexCholeskyDecomposition chol(DComplexMatrix2D matrix, int order)
matrix
- sparse matrixorder
- ordering option (0 or 1); 0: natural ordering, 1: amd(A+A')public Object clone()
public double[] det(DComplexMatrix2D A)
A
- sparse matrixpublic SparseDComplexLUDecomposition lu(DComplexMatrix2D matrix, int order)
matrix
- sparse matrixorder
- ordering option (0 to 3); 0: natural ordering, 1: amd(A+A'),
2: amd(S'*S), 3: amd(A'*A)public double norm1(DComplexMatrix2D A)
public double normInfinity(DComplexMatrix2D A)
public DComplexProperty property()
setProperty(DComplexProperty)
public SparseDComplexQRDecomposition qr(DComplexMatrix2D matrix, int order)
matrix
- sparse matrixorder
- ordering option (0 to 3); 0: natural ordering, 1: amd(A+A'),
2: amd(S'*S), 3: amd(A'*A)public void setProperty(DComplexProperty property)
property
- the Property object to be attached.UnsupportedOperationException
- if this==DEFAULT && property!=this.property() - The
DEFAULT Algebra object is immutable.UnsupportedOperationException
- if this==ZERO && property!=this.property() - The
ZERO Algebra object is immutable.property
public DComplexMatrix1D solve(DComplexMatrix2D A, DComplexMatrix1D b)
A
- sparse matrixb
- right hand sideJump to the Parallel Colt Homepage