|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJSci.maths.matrices.Matrix
JSci.maths.matrices.AbstractDoubleMatrix
JSci.maths.matrices.AbstractDoubleSquareMatrix
The AbstractDoubleSquareMatrix class provides an object for encapsulating double square matrices.
| Field Summary | |
protected AbstractDoubleSquareMatrix[] |
LU
|
protected int[] |
LUpivot
|
| Fields inherited from class JSci.maths.matrices.Matrix |
numCols, numRows |
| Constructor Summary | |
protected |
AbstractDoubleSquareMatrix(int size)
Constructs a matrix. |
| Method Summary | |
AbstractDoubleMatrix |
add(AbstractDoubleMatrix m)
Returns the addition of this matrix and another. |
AbstractDoubleSquareMatrix |
add(AbstractDoubleSquareMatrix m)
Returns the addition of this matrix and another. |
AbstractDoubleSquareMatrix[] |
choleskyDecompose()
Returns the Cholesky decomposition of this matrix. |
double |
det()
Returns the determinant. |
AbstractDoubleSquareMatrix |
directSum(AbstractDoubleSquareMatrix 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. |
AbstractDoubleSquareMatrix[] |
luDecompose(int[] pivot)
Returns the LU decomposition of this matrix. |
AbstractDoubleMatrix |
mapElements(Mapping f)
Applies a function on all the matrix elements. |
AbstractDoubleSquareMatrix |
multiply(AbstractDoubleSquareMatrix m)
Returns the multiplication of this matrix and another. |
AbelianGroup.Member |
negate()
Returns the negative of this matrix. |
double |
operatorNorm()
Returns the operator norm. |
AbstractDoubleSquareMatrix[] |
polarDecompose()
Returns the polar decomposition of this matrix. |
AbstractDoubleSquareMatrix[] |
qrDecompose()
Returns the QR decomposition of this matrix. |
AbstractDoubleMatrix |
scalarDivide(double x)
Returns the division of this matrix by a scalar. |
AbstractDoubleMatrix |
scalarMultiply(double x)
Returns the multiplication of this matrix by a scalar. |
double |
scalarProduct(AbstractDoubleMatrix m)
Returns the scalar product of this matrix and another. |
double |
scalarProduct(AbstractDoubleSquareMatrix m)
Returns the scalar product of this matrix and another. |
AbstractDoubleSquareMatrix[] |
singularValueDecompose()
Returns the singular value decomposition of this matrix. |
AbstractDoubleMatrix |
subtract(AbstractDoubleMatrix m)
Returns the subtraction of this matrix and another. |
AbstractDoubleSquareMatrix |
subtract(AbstractDoubleSquareMatrix m)
Returns the subtraction of this matrix by another. |
AbstractDoubleSquareMatrix |
tensor(AbstractDoubleSquareMatrix m)
Returns the tensor product of this matrix and another. |
AbstractComplexMatrix |
toComplexMatrix()
Converts this matrix to a complex matrix. |
AbstractIntegerMatrix |
toIntegerMatrix()
Converts this matrix to an integer matrix. |
double |
trace()
Returns the trace. |
Matrix |
transpose()
Returns the transpose of this matrix. |
| Methods inherited from class JSci.maths.matrices.AbstractDoubleMatrix |
add, directSum, equals, equals, frobeniusNorm, getElement, 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 AbstractDoubleSquareMatrix[] LU
protected transient int[] LUpivot
| Constructor Detail |
protected AbstractDoubleSquareMatrix(int size)
| Method Detail |
public AbstractIntegerMatrix toIntegerMatrix()
toIntegerMatrix in class AbstractDoubleMatrixpublic AbstractComplexMatrix toComplexMatrix()
toComplexMatrix in class AbstractDoubleMatrixpublic boolean isSymmetric()
public boolean isUnitary()
public double det()
public double trace()
public double operatorNorm()
throws MaximumIterationsExceededException
MaximumIterationsExceededException - If it takes more than 50 iterations to determine an eigenvalue.public AbelianGroup.Member negate()
negate in interface AbelianGroup.Membernegate in class AbstractDoubleMatrixpublic final AbstractDoubleMatrix add(AbstractDoubleMatrix m)
add in class AbstractDoubleMatrixm - a double square matrix
MatrixDimensionException - If the matrices are not square or different sizes.public AbstractDoubleSquareMatrix add(AbstractDoubleSquareMatrix m)
m - a double square matrix
MatrixDimensionException - If the matrices are different sizes.public final AbstractDoubleMatrix subtract(AbstractDoubleMatrix m)
subtract in class AbstractDoubleMatrixm - a double square matrix
MatrixDimensionException - If the matrices are not square or different sizes.public AbstractDoubleSquareMatrix subtract(AbstractDoubleSquareMatrix m)
m - a double square matrix
MatrixDimensionException - If the matrices are different sizes.public AbstractDoubleMatrix scalarMultiply(double x)
scalarMultiply in class AbstractDoubleMatrixx - a double.
public AbstractDoubleMatrix scalarDivide(double x)
scalarDivide in class AbstractDoubleMatrixx - a double.
public final double scalarProduct(AbstractDoubleMatrix m)
scalarProduct in class AbstractDoubleMatrixm - a double square matrix.
MatrixDimensionException - If the matrices are not square or different sizes.public double scalarProduct(AbstractDoubleSquareMatrix m)
m - a double square matrix.
MatrixDimensionException - If the matrices are different sizes.public AbstractDoubleSquareMatrix multiply(AbstractDoubleSquareMatrix m)
m - a double square matrix
MatrixDimensionException - If the matrices are different sizes.public AbstractDoubleSquareMatrix directSum(AbstractDoubleSquareMatrix m)
public AbstractDoubleSquareMatrix tensor(AbstractDoubleSquareMatrix m)
public Matrix transpose()
transpose in class AbstractDoubleMatrixpublic 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.
public AbstractDoubleSquareMatrix[] choleskyDecompose()
public AbstractDoubleSquareMatrix[] qrDecompose()
public AbstractDoubleSquareMatrix[] singularValueDecompose()
public AbstractDoubleSquareMatrix[] polarDecompose()
public AbstractDoubleMatrix mapElements(Mapping f)
mapElements in class AbstractDoubleMatrixf - a user-defined function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||