|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.mathematics.algebraic.AbstractHypermatrix
org.jscience.mathematics.algebraic.AbstractMatrix
org.jscience.mathematics.algebraic.matrices.AbstractDoubleMatrix
org.jscience.mathematics.algebraic.matrices.AbstractDoubleSquareMatrix
public abstract class AbstractDoubleSquareMatrix
The AbstractDoubleSquareMatrix class provides an object for encapsulating double square matrices.
| Field Summary | |
|---|---|
protected AbstractDoubleSquareMatrix[] |
LU
|
protected int[] |
LUpivot
|
| 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. |
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 |
tensorProduct(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 org.jscience.mathematics.algebraic.matrices.AbstractDoubleMatrix |
|---|
abs, add, directSum, equals, equals, equals, frobeniusNorm, getColumn, getElement, getMatrixAsColumns, getMatrixAsRows, getPrimitiveElement, getRow, getSet, getSubMatrix, hashCode, horizontalAxisSymmetry, infNorm, mapElements, mass, max, mean, min, multiply, multiply, multiply, read, reverse, scalarDivide, scalarMultiply, setAllElements, setColumn, setElement, setRow, setSubMatrix, subtract, tensorProduct, toPrimitiveArray, toString, verticalAxisSymmetry |
| Methods inherited from class org.jscience.mathematics.algebraic.AbstractMatrix |
|---|
getElement, getInvalidElementMsg, numColumns, numRows, print, print, print, print, toArray, toArray |
| Methods inherited from class org.jscience.mathematics.algebraic.AbstractHypermatrix |
|---|
getDimensions, numDimensions, numElements, numElements, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jscience.mathematics.algebraic.Matrix |
|---|
getColumn, getElement, getRow, numColumns, numRows, toArray |
| Methods inherited from interface org.jscience.mathematics.algebraic.Hypermatrix |
|---|
getDimensions, getElement, numDimensions, numElements, numElements, toArray, toArray |
| 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()
isSymmetric in interface SquareMatrixpublic 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
IllegalDimensionException - If the matrices are not square or different sizes.public AbstractDoubleSquareMatrix add(AbstractDoubleSquareMatrix m)
m - a double square matrix
IllegalDimensionException - If the matrices are different sizes.public final AbstractDoubleMatrix subtract(AbstractDoubleMatrix m)
subtract in class AbstractDoubleMatrixm - a double square matrix
IllegalDimensionException - If the matrices are not square or different sizes.public AbstractDoubleSquareMatrix subtract(AbstractDoubleSquareMatrix m)
m - a double square matrix
IllegalDimensionException - 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.
IllegalDimensionException - If the matrices are not square or different sizes.public double scalarProduct(AbstractDoubleSquareMatrix m)
m - a double square matrix.
IllegalDimensionException - If the matrices are different sizes.public AbstractDoubleSquareMatrix multiply(AbstractDoubleSquareMatrix m)
m - a double square matrix
IllegalDimensionException - If the matrices are different sizes.public AbstractDoubleSquareMatrix directSum(AbstractDoubleSquareMatrix m)
public AbstractDoubleSquareMatrix tensorProduct(AbstractDoubleSquareMatrix m)
public Matrix transpose()
transpose in interface Matrixtranspose in class AbstractDoubleMatrixpublic AbstractDoubleSquareMatrix inverse()
public AbstractDoubleSquareMatrix[] luDecompose(int[] pivot)
pivot - an empty array of length numRows()+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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||