|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.maths.matrices.Matrix JSci.maths.matrices.AbstractIntegerMatrix JSci.maths.matrices.AbstractIntegerSquareMatrix
public abstract class AbstractIntegerSquareMatrix
The AbstractIntegerSquareMatrix class provides an object for encapsulating integer square matrices.
Field Summary | |
---|---|
protected DoubleLUCache |
luCache
|
Fields inherited from class JSci.maths.matrices.Matrix |
---|
numCols, numRows |
Constructor Summary | |
---|---|
protected |
AbstractIntegerSquareMatrix(int size)
Constructs a matrix. |
Method Summary | |
---|---|
AbstractIntegerMatrix |
add(AbstractIntegerMatrix m)
Returns the addition of this matrix and another. |
AbstractIntegerSquareMatrix |
add(AbstractIntegerSquareMatrix m)
Returns the addition of this matrix and another. |
AbstractDoubleSquareMatrix[] |
choleskyDecompose()
Returns the Cholesky decomposition of this matrix. |
int |
det()
Returns the determinant. |
AbstractIntegerSquareMatrix |
directSum(AbstractIntegerSquareMatrix m)
Returns the direct sum of this matrix and another. |
AbstractDoubleSquareMatrix |
inverse()
Returns the inverse of this matrix. |
boolean |
isSymmetric()
Returns true if this matrix is symmetric. |
boolean |
isUnitary()
Returns true if this matrix is unitary. |
protected AbstractDoubleSquareMatrix[] |
luDecompose_cache(int[] pivot)
|
AbstractDoubleSquareMatrix[] |
luDecompose()
Returns the LU decomposition of this matrix. |
AbstractDoubleSquareMatrix[] |
luDecompose(int[] pivot)
Returns the LU decomposition of this matrix. |
AbstractIntegerSquareMatrix |
multiply(AbstractIntegerSquareMatrix m)
Returns the multiplication of this matrix and another. |
AbelianGroup.Member |
negate()
Returns the negative of this matrix. |
AbstractDoubleSquareMatrix[] |
qrDecompose()
Returns the QR decomposition of this matrix. |
AbstractIntegerMatrix |
scalarMultiply(int x)
Returns the multiplication of this matrix by a scalar. |
int |
scalarProduct(AbstractIntegerMatrix m)
Returns the scalar product of this matrix and another. |
int |
scalarProduct(AbstractIntegerSquareMatrix m)
Returns the scalar product of this matrix and another. |
AbstractDoubleSquareMatrix[] |
singularValueDecompose()
Returns the singular value decomposition of this matrix. |
AbstractIntegerMatrix |
subtract(AbstractIntegerMatrix m)
Returns the subtraction of this matrix and another. |
AbstractIntegerSquareMatrix |
subtract(AbstractIntegerSquareMatrix m)
Returns the subtraction of this matrix by another. |
AbstractIntegerSquareMatrix |
tensor(AbstractIntegerSquareMatrix m)
Returns the tensor product of this matrix and another. |
AbstractComplexMatrix |
toComplexMatrix()
Converts this matrix to a complex matrix. |
AbstractDoubleMatrix |
toDoubleMatrix()
Converts this matrix to a double matrix. |
int |
trace()
Returns the trace. |
Matrix |
transpose()
Returns the transpose of this matrix. |
Methods inherited from class JSci.maths.matrices.AbstractIntegerMatrix |
---|
add, directSum, equals, equals, equals, frobeniusNorm, getElement, getSet, hashCode, infNorm, multiply, multiply, multiply, scalarDivide, scalarMultiply, setElement, subtract, tensor, toString |
Methods inherited from class JSci.maths.matrices.Matrix |
---|
columns, getInvalidElementMsg, rows |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected transient DoubleLUCache luCache
Constructor Detail |
---|
protected AbstractIntegerSquareMatrix(int size)
Method Detail |
---|
public AbstractDoubleMatrix toDoubleMatrix()
toDoubleMatrix
in class AbstractIntegerMatrix
public AbstractComplexMatrix toComplexMatrix()
toComplexMatrix
in class AbstractIntegerMatrix
public boolean isSymmetric()
public boolean isUnitary()
public int det()
public int trace()
public AbelianGroup.Member negate()
negate
in interface AbelianGroup.Member
negate
in class AbstractIntegerMatrix
public final AbstractIntegerMatrix add(AbstractIntegerMatrix m)
add
in class AbstractIntegerMatrix
m
- a int square matrix
MatrixDimensionException
- If the matrices are not square or different sizes.public AbstractIntegerSquareMatrix add(AbstractIntegerSquareMatrix m)
m
- a int square matrix
MatrixDimensionException
- If the matrices are different sizes.public final AbstractIntegerMatrix subtract(AbstractIntegerMatrix m)
subtract
in class AbstractIntegerMatrix
m
- a int square matrix
MatrixDimensionException
- If the matrices are not square or different sizes.public AbstractIntegerSquareMatrix subtract(AbstractIntegerSquareMatrix m)
m
- a int square matrix
MatrixDimensionException
- If the matrices are different sizes.public AbstractIntegerMatrix scalarMultiply(int x)
scalarMultiply
in class AbstractIntegerMatrix
x
- a int.
public final int scalarProduct(AbstractIntegerMatrix m)
scalarProduct
in class AbstractIntegerMatrix
m
- a int square matrix.
MatrixDimensionException
- If the matrices are not square or different sizes.public int scalarProduct(AbstractIntegerSquareMatrix m)
m
- a int square matrix.
MatrixDimensionException
- If the matrices are different sizes.public AbstractIntegerSquareMatrix multiply(AbstractIntegerSquareMatrix m)
m
- a int square matrix
MatrixDimensionException
- If the matrices are different sizes.public AbstractIntegerSquareMatrix directSum(AbstractIntegerSquareMatrix m)
public AbstractIntegerSquareMatrix tensor(AbstractIntegerSquareMatrix m)
public Matrix transpose()
transpose
in class AbstractIntegerMatrix
public AbstractDoubleSquareMatrix inverse()
public AbstractDoubleSquareMatrix[] luDecompose(int[] pivot)
pivot
- an empty array of length rows()+1
to hold the pivot information (null if not interested).
The last array element will contain the parity.
protected AbstractDoubleSquareMatrix[] luDecompose_cache(int[] pivot)
public AbstractDoubleSquareMatrix[] luDecompose()
public AbstractDoubleSquareMatrix[] choleskyDecompose()
public AbstractDoubleSquareMatrix[] qrDecompose()
public AbstractDoubleSquareMatrix[] singularValueDecompose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |