org.jscience.mathematics.algebraic.matrices
Class ComplexSymmetricMatrix

java.lang.Object
  extended by org.jscience.mathematics.algebraic.AbstractHypermatrix
      extended by org.jscience.mathematics.algebraic.AbstractMatrix
          extended by org.jscience.mathematics.algebraic.matrices.AbstractComplexMatrix
              extended by org.jscience.mathematics.algebraic.matrices.AbstractComplexSquareMatrix
                  extended by org.jscience.mathematics.algebraic.matrices.ComplexSquareMatrix
                      extended by org.jscience.mathematics.algebraic.matrices.ComplexSymmetricMatrix
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Algebra.Member, BanachSpace.Member, CStarAlgebra.Member, Ring.Member, AbelianGroup.Member, Hypermatrix, Matrix, Module.Member, VectorSpace.Member, SquareMatrix, Member

public class ComplexSymmetricMatrix
extends ComplexSquareMatrix
implements java.lang.Cloneable, java.io.Serializable

The ComplexSymmetricMatrix class provides an object for encapsulating square matrices containing doubles.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jscience.mathematics.algebraic.matrices.ComplexSquareMatrix
matrixIm, matrixRe
 
Fields inherited from class org.jscience.mathematics.algebraic.matrices.AbstractComplexSquareMatrix
LU, LUpivot
 
Constructor Summary
ComplexSymmetricMatrix(Complex[][] array)
          Constructs a matrix by wrapping an array.
ComplexSymmetricMatrix(ComplexSymmetricMatrix mat)
          Copy constructor.
ComplexSymmetricMatrix(ComplexVector[] array)
          Constructs a matrix from an array of vectors (columns).
ComplexSymmetricMatrix(int size)
          Constructs an empty matrix.
 
Method Summary
 java.lang.Object clone()
          Clone matrix into a new matrix.
 void setElement(int i, int j, Complex x)
          Also sets the symmetric element.
 
Methods inherited from class org.jscience.mathematics.algebraic.matrices.ComplexSquareMatrix
add, add, conjugate, det, directSum, equals, frobeniusNorm, getImagElement, getPrimitiveElement, getRealElement, hermitianAdjoint, imag, infNorm, inverse, luDecompose, mapElements, multiply, multiply, multiply, negate, polarDecompose, real, scalarMultiply, scalarMultiply, setAllElements, setElement, subtract, subtract, tensorProduct, toPrimitiveArray, toString, trace, transpose
 
Methods inherited from class org.jscience.mathematics.algebraic.matrices.AbstractComplexSquareMatrix
add, involution, isHermitian, isSymmetric, isUnitary, norm, operatorNorm, scalarDivide, scalarDivide, scalarProduct, scalarProduct, subtract
 
Methods inherited from class org.jscience.mathematics.algebraic.matrices.AbstractComplexMatrix
abs, add, directSum, equals, equals, getColumn, getElement, getMatrixAsColumns, getMatrixAsRows, getRow, getSet, getSubMatrix, hashCode, horizontalAxisSymmetry, mass, multiply, multiply, read, reverse, scalarDivide, scalarMultiply, setColumn, setRow, setSubMatrix, subtract, tensorProduct, 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
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
 

Constructor Detail

ComplexSymmetricMatrix

public ComplexSymmetricMatrix(int size)
Constructs an empty matrix.

Parameters:
size - the number of rows/columns.

ComplexSymmetricMatrix

public ComplexSymmetricMatrix(Complex[][] array)
Constructs a matrix by wrapping an array.

Parameters:
array - an assigned value.

ComplexSymmetricMatrix

public ComplexSymmetricMatrix(ComplexVector[] array)
Constructs a matrix from an array of vectors (columns).

Parameters:
array - an assigned value.

ComplexSymmetricMatrix

public ComplexSymmetricMatrix(ComplexSymmetricMatrix mat)
Copy constructor.

Parameters:
mat - an assigned value.
Method Detail

setElement

public void setElement(int i,
                       int j,
                       Complex x)
Also sets the symmetric element.

Overrides:
setElement in class ComplexSquareMatrix
Parameters:
i - DOCUMENT ME!
j - DOCUMENT ME!
x - DOCUMENT ME!

clone

public java.lang.Object clone()
Clone matrix into a new matrix.

Overrides:
clone in class ComplexSquareMatrix
Returns:
the cloned matrix.