|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJSci.maths.Matrix
JSci.maths.ComplexMatrix
JSci.maths.ComplexSquareMatrix
public class ComplexSquareMatrix
The ComplexSquareMatrix class provides an object for encapsulating square matrices containing complex numbers.
| Field Summary | |
|---|---|
protected ComplexSquareMatrix[] |
LU
|
protected int[] |
LUpivot
|
| Fields inherited from class JSci.maths.ComplexMatrix |
|---|
ARRAY_2D, matrixIm, matrixRe |
| Fields inherited from class JSci.maths.Matrix |
|---|
CLASS_SPECIFIC, numCols, numRows, storageFormat |
| Constructor Summary | |
|---|---|
|
ComplexSquareMatrix(Complex[][] array)
Constructs a matrix from an array. |
|
ComplexSquareMatrix(ComplexVector[] array)
Constructs a matrix from an array of vectors. |
|
ComplexSquareMatrix(double[][] arrayRe,
double[][] arrayIm)
Constructs a matrix by wrapping two arrays. |
|
ComplexSquareMatrix(int size)
Constructs an empty matrix. |
protected |
ComplexSquareMatrix(int size,
int storeID)
Constructs a matrix. |
| Method Summary | |
|---|---|
ComplexMatrix |
add(ComplexMatrix m)
Returns the addition of this matrix and another. |
ComplexSquareMatrix |
add(ComplexSquareMatrix m)
Returns the addition of this matrix and another. |
ComplexMatrix |
conjugate()
Returns the complex conjugate of this matrix. |
Complex |
det()
Returns the determinant. |
ComplexMatrix |
hermitianAdjoint()
Returns the hermitian adjoint of this matrix. |
ComplexSquareMatrix |
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. |
ComplexSquareMatrix[] |
luDecompose(int[] pivot)
Returns the LU decomposition of this matrix. |
ComplexMatrix |
mapElements(ComplexMapping f)
Applies a function on all the matrix elements. |
ComplexSquareMatrix |
multiply(ComplexSquareMatrix m)
Returns the multiplication of this matrix and another. |
ComplexVector |
multiply(ComplexVector v)
Returns the multiplication of a vector by this matrix. |
double |
norm()
Returns the C* norm. |
double |
operatorNorm()
Returns the operator norm. |
ComplexSquareMatrix[] |
polarDecompose()
Returns the polar decomposition of this matrix. |
ComplexMatrix |
scalarMultiply(Complex z)
Returns the multiplication of this matrix by a scalar. |
ComplexMatrix |
scalarMultiply(double x)
Returns the multiplication of this matrix by a scalar. |
ComplexMatrix |
subtract(ComplexMatrix m)
Returns the subtraction of this matrix by another. |
ComplexSquareMatrix |
subtract(ComplexSquareMatrix m)
Returns the subtraction of this matrix by another. |
Complex |
trace()
Returns the trace. |
Matrix |
transpose()
Returns the transpose of this matrix. |
| Methods inherited from class JSci.maths.ComplexMatrix |
|---|
add, directSum, equals, finalize, frobeniusNorm, getElement, hashCode, imag, infNorm, multiply, multiply, negate, real, scalarDivide, scalarDivide, scalarDivide, scalarMultiply, setElement, setElement, subtract, tensorProduct, toString |
| Methods inherited from class JSci.maths.Matrix |
|---|
columns, getInvalidElementMsg, rows |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface JSci.maths.fields.Ring.Member |
|---|
multiply |
| Methods inherited from interface JSci.maths.algebras.VectorSpace.Member |
|---|
scalarDivide |
| Methods inherited from interface JSci.maths.algebras.Module.Member |
|---|
scalarMultiply |
| Field Detail |
|---|
protected transient ComplexSquareMatrix[] LU
protected transient int[] LUpivot
| Constructor Detail |
|---|
protected ComplexSquareMatrix(int size,
int storeID)
public ComplexSquareMatrix(int size)
size - the number of rows/columns
public ComplexSquareMatrix(double[][] arrayRe,
double[][] arrayIm)
arrayRe - an array of real valuesarrayIm - an array of imaginary values
MatrixDimensionException - If the array is not square.public ComplexSquareMatrix(Complex[][] array)
array - an assigned value
MatrixDimensionException - If the array is not square.public ComplexSquareMatrix(ComplexVector[] array)
array - an assigned value.
MatrixDimensionException - If the array is not square.| Method Detail |
|---|
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 ComplexMatrix add(ComplexMatrix m)
add in class ComplexMatrixm - a complex matrix
MatrixDimensionException - If the matrices are different sizes.public ComplexSquareMatrix add(ComplexSquareMatrix m)
m - a complex square matrix
MatrixDimensionException - If the matrices are different sizes.public ComplexMatrix subtract(ComplexMatrix m)
subtract in class ComplexMatrixm - a complex matrix
MatrixDimensionException - If the matrices are different sizes.public ComplexSquareMatrix subtract(ComplexSquareMatrix m)
m - a complex square matrix
MatrixDimensionException - If the matrices are different sizes.public ComplexMatrix scalarMultiply(Complex z)
scalarMultiply in class ComplexMatrixz - a complex number
public ComplexMatrix scalarMultiply(double x)
scalarMultiply in class ComplexMatrixx - a double
public ComplexVector multiply(ComplexVector v)
multiply in class ComplexMatrixv - a complex vector
DimensionException - If the matrix and vector are incompatible.public ComplexSquareMatrix multiply(ComplexSquareMatrix m)
m - a complex square matrix
MatrixDimensionException - If the matrices are incompatible.public CStarAlgebra.Member involution()
involution in interface CStarAlgebra.Memberpublic ComplexMatrix hermitianAdjoint()
hermitianAdjoint in class ComplexMatrixpublic ComplexMatrix conjugate()
conjugate in class ComplexMatrixpublic Matrix transpose()
transpose in class ComplexMatrixpublic ComplexSquareMatrix inverse()
public ComplexSquareMatrix[] luDecompose(int[] pivot)
public ComplexSquareMatrix[] polarDecompose()
public ComplexMatrix mapElements(ComplexMapping f)
mapElements in class ComplexMatrixf - a user-defined function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||