|
||||||||||
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.AbstractComplexMatrix JSci.maths.matrices.AbstractComplexSquareMatrix
The AbstractComplexSquareMatrix class provides an object for encapsulating square matrices containing complex numbers.
Field Summary | |
protected AbstractComplexSquareMatrix[] |
LU
|
protected int[] |
LUpivot
|
Fields inherited from class JSci.maths.matrices.Matrix |
numCols, numRows |
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 |
isUnitary()
Returns true if this matrix is unitary. |
AbstractComplexSquareMatrix[] |
luDecompose(int[] pivot)
Returns the LU decomposition of this matrix. |
AbstractComplexMatrix |
mapElements(ComplexMapping f)
Applies a function on all the matrix elements. |
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 |
tensor(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 JSci.maths.matrices.AbstractComplexMatrix |
add, directSum, equals, equals, frobeniusNorm, getElement, getImagElement, getRealElement, hashCode, infNorm, multiply, multiply, multiply, scalarDivide, scalarMultiply, setElement, 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 |
Methods inherited from interface JSci.maths.algebras.VectorSpace.Member |
scalarDivide |
Methods inherited from interface JSci.maths.algebras.Module.Member |
scalarMultiply |
Methods inherited from interface JSci.maths.groups.AbelianGroup.Member |
add, subtract |
Methods inherited from interface JSci.maths.fields.Ring.Member |
multiply |
Field Detail |
protected transient AbstractComplexSquareMatrix[] LU
protected transient int[] LUpivot
Constructor Detail |
protected AbstractComplexSquareMatrix(int size)
Method Detail |
public AbstractDoubleMatrix real()
real
in class AbstractComplexMatrix
public AbstractDoubleMatrix imag()
imag
in class AbstractComplexMatrix
public 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.Member
negate
in class AbstractComplexMatrix
public final AbstractComplexMatrix add(AbstractComplexMatrix m)
add
in class AbstractComplexMatrix
m
- a complex square matrix
MatrixDimensionException
- If the matrices are not square or different sizes.public AbstractComplexSquareMatrix add(AbstractComplexSquareMatrix m)
m
- a complex square matrix
MatrixDimensionException
- If the matrices are different sizes.public final AbstractComplexMatrix subtract(AbstractComplexMatrix m)
subtract
in class AbstractComplexMatrix
m
- a complex square matrix
MatrixDimensionException
- If the matrices are not square or different sizes.public AbstractComplexSquareMatrix subtract(AbstractComplexSquareMatrix m)
m
- a complex square matrix
MatrixDimensionException
- If the matrices are different sizes.public AbstractComplexMatrix scalarMultiply(Complex z)
scalarMultiply
in class AbstractComplexMatrix
z
- a complex number
public AbstractComplexMatrix scalarMultiply(double x)
scalarMultiply
in class AbstractComplexMatrix
x
- a double
public AbstractComplexMatrix scalarDivide(Complex z)
scalarDivide
in class AbstractComplexMatrix
z
- a complex number
public AbstractComplexMatrix scalarDivide(double x)
scalarDivide
in class AbstractComplexMatrix
x
- a double
public final Complex scalarProduct(AbstractComplexMatrix m)
scalarProduct
in class AbstractComplexMatrix
m
- a Complex square matrix.
MatrixDimensionException
- If the matrices are not square or different sizes.public Complex scalarProduct(AbstractComplexSquareMatrix m)
m
- a complex square matrix.
MatrixDimensionException
- If the matrices are different sizes.public AbstractComplexSquareMatrix multiply(AbstractComplexSquareMatrix m)
m
- a complex square matrix
MatrixDimensionException
- If the matrices are incompatible.public AbstractComplexSquareMatrix directSum(AbstractComplexSquareMatrix m)
public AbstractComplexSquareMatrix tensor(AbstractComplexSquareMatrix m)
public final CStarAlgebra.Member involution()
involution
in interface CStarAlgebra.Member
public AbstractComplexMatrix hermitianAdjoint()
hermitianAdjoint
in class AbstractComplexMatrix
public AbstractComplexMatrix conjugate()
conjugate
in class AbstractComplexMatrix
public Matrix transpose()
transpose
in class AbstractComplexMatrix
public AbstractComplexSquareMatrix inverse()
public AbstractComplexSquareMatrix[] luDecompose(int[] pivot)
public AbstractComplexSquareMatrix[] polarDecompose()
public AbstractComplexMatrix mapElements(ComplexMapping f)
mapElements
in class AbstractComplexMatrix
f
- a user-defined function
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |