|
|||||||||
| 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.AbstractComplexMatrix
org.jscience.mathematics.algebraic.matrices.AbstractComplexSquareMatrix
public abstract class AbstractComplexSquareMatrix
The AbstractComplexSquareMatrix class provides an object for encapsulating square matrices containing complex numbers.
| Field Summary | |
|---|---|
protected AbstractComplexSquareMatrix[] |
LU
|
protected int[] |
LUpivot
|
| Constructor Summary | |
|---|---|
protected |
AbstractComplexSquareMatrix(int size)
Constructs a matrix. |
| Method Summary | |
|---|---|
AbstractComplexMatrix |
add(AbstractComplexMatrix m)
Returns the addition of this matrix and another. |
AbstractComplexSquareMatrix |
add(AbstractComplexSquareMatrix m)
Returns the addition of this matrix and another. |
AbstractComplexMatrix |
conjugate()
Returns the complex conjugate of this matrix. |
Complex |
det()
Returns the determinant. |
AbstractComplexSquareMatrix |
directSum(AbstractComplexSquareMatrix m)
Returns the direct sum of this matrix and another. |
AbstractComplexMatrix |
hermitianAdjoint()
Returns the hermitian adjoint of this matrix. |
AbstractDoubleMatrix |
imag()
Returns the imaginary part of this complex matrix. |
AbstractComplexSquareMatrix |
inverse()
Returns the inverse of this matrix. |
CStarAlgebra.Member |
involution()
Returns the involution of this matrix. |
boolean |
isHermitian()
Returns true if this matrix is hermitian. |
boolean |
isSymmetric()
Returns true if this matrix is symmetric. |
boolean |
isUnitary()
Returns true if this matrix is unitary. |
AbstractComplexSquareMatrix[] |
luDecompose(int[] pivot)
Returns the LU decomposition of this matrix. |
AbstractComplexSquareMatrix |
multiply(AbstractComplexSquareMatrix m)
Returns the multiplication of this matrix and another. |
AbelianGroup.Member |
negate()
Returns the negative of this matrix. |
double |
norm()
Returns the C* norm. |
double |
operatorNorm()
Returns the operator norm. |
AbstractComplexSquareMatrix[] |
polarDecompose()
Returns the polar decomposition of this matrix. |
AbstractDoubleMatrix |
real()
Returns the real part of this complex matrix. |
AbstractComplexMatrix |
scalarDivide(Complex z)
Returns the division of this matrix by a scalar. |
AbstractComplexMatrix |
scalarDivide(double x)
Returns the division of this matrix by a scalar. |
AbstractComplexMatrix |
scalarMultiply(Complex z)
Returns the multiplication of this matrix by a scalar. |
AbstractComplexMatrix |
scalarMultiply(double x)
Returns the multiplication of this matrix by a scalar. |
Complex |
scalarProduct(AbstractComplexMatrix m)
Returns the scalar product of this matrix and another. |
Complex |
scalarProduct(AbstractComplexSquareMatrix m)
Returns the scalar product of this matrix and another. |
AbstractComplexMatrix |
subtract(AbstractComplexMatrix m)
Returns the subtraction of this matrix and another. |
AbstractComplexSquareMatrix |
subtract(AbstractComplexSquareMatrix m)
Returns the subtraction of this matrix by another. |
AbstractComplexSquareMatrix |
tensorProduct(AbstractComplexSquareMatrix m)
Returns the tensor product of this matrix and another. |
Complex |
trace()
Returns the trace. |
Matrix |
transpose()
Returns the transpose of this matrix. |
| Methods inherited from class org.jscience.mathematics.algebraic.matrices.AbstractComplexMatrix |
|---|
abs, add, directSum, equals, equals, equals, frobeniusNorm, getColumn, getElement, getImagElement, getMatrixAsColumns, getMatrixAsRows, getPrimitiveElement, getRealElement, getRow, getSet, getSubMatrix, hashCode, horizontalAxisSymmetry, infNorm, mapElements, mass, multiply, multiply, multiply, read, reverse, scalarDivide, scalarMultiply, setAllElements, setColumn, setElement, 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.fields.Ring.Member |
|---|
multiply |
| Methods inherited from interface org.jscience.mathematics.algebraic.modules.VectorSpace.Member |
|---|
scalarDivide |
| Methods inherited from interface org.jscience.mathematics.algebraic.modules.Module.Member |
|---|
scalarMultiply |
| 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 AbstractComplexSquareMatrix[] LU
protected transient int[] LUpivot
| Constructor Detail |
|---|
protected AbstractComplexSquareMatrix(int size)
| Method Detail |
|---|
public AbstractDoubleMatrix real()
real in class AbstractComplexMatrixpublic AbstractDoubleMatrix imag()
imag in class AbstractComplexMatrixpublic boolean isSymmetric()
isSymmetric in interface SquareMatrixpublic boolean isHermitian()
public boolean isUnitary()
public Complex det()
public Complex trace()
public double norm()
norm in interface BanachSpace.Member
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 AbstractComplexMatrixpublic final AbstractComplexMatrix add(AbstractComplexMatrix m)
add in class AbstractComplexMatrixm - a complex square matrix
IllegalDimensionException - If the matrices are not square or different sizes.public AbstractComplexSquareMatrix add(AbstractComplexSquareMatrix m)
m - a complex square matrix
IllegalDimensionException - If the matrices are different sizes.public final AbstractComplexMatrix subtract(AbstractComplexMatrix m)
subtract in class AbstractComplexMatrixm - a complex square matrix
IllegalDimensionException - If the matrices are not square or different sizes.public AbstractComplexSquareMatrix subtract(AbstractComplexSquareMatrix m)
m - a complex square matrix
IllegalDimensionException - If the matrices are different sizes.public AbstractComplexMatrix scalarMultiply(Complex z)
scalarMultiply in class AbstractComplexMatrixz - a complex number
public AbstractComplexMatrix scalarMultiply(double x)
scalarMultiply in class AbstractComplexMatrixx - a double
public AbstractComplexMatrix scalarDivide(Complex z)
scalarDivide in class AbstractComplexMatrixz - a complex number
public AbstractComplexMatrix scalarDivide(double x)
scalarDivide in class AbstractComplexMatrixx - a double
public final Complex scalarProduct(AbstractComplexMatrix m)
scalarProduct in class AbstractComplexMatrixm - a Complex square matrix.
IllegalDimensionException - If the matrices are not square or different sizes.public Complex scalarProduct(AbstractComplexSquareMatrix m)
m - a complex square matrix.
IllegalDimensionException - If the matrices are different sizes.public AbstractComplexSquareMatrix multiply(AbstractComplexSquareMatrix m)
m - a complex square matrix
IllegalDimensionException - If the matrices are incompatible.public AbstractComplexSquareMatrix directSum(AbstractComplexSquareMatrix m)
public AbstractComplexSquareMatrix tensorProduct(AbstractComplexSquareMatrix m)
public final CStarAlgebra.Member involution()
involution in interface CStarAlgebra.Memberpublic AbstractComplexMatrix hermitianAdjoint()
hermitianAdjoint in class AbstractComplexMatrixpublic AbstractComplexMatrix conjugate()
conjugate in class AbstractComplexMatrixpublic Matrix transpose()
transpose in interface Matrixtranspose in class AbstractComplexMatrixpublic AbstractComplexSquareMatrix inverse()
public AbstractComplexSquareMatrix[] luDecompose(int[] pivot)
public AbstractComplexSquareMatrix[] polarDecompose()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||