org.jscience.mathematics.algebraic.matrices
Class DoubleSymmetricMatrix

java.lang.Object
  extended by org.jscience.mathematics.algebraic.AbstractHypermatrix
      extended by org.jscience.mathematics.algebraic.AbstractMatrix
          extended by org.jscience.mathematics.algebraic.matrices.AbstractDoubleMatrix
              extended by org.jscience.mathematics.algebraic.matrices.AbstractDoubleSquareMatrix
                  extended by org.jscience.mathematics.algebraic.matrices.DoubleSquareMatrix
                      extended by org.jscience.mathematics.algebraic.matrices.DoubleSymmetricMatrix
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Algebra.Member, Ring.Member, AbelianGroup.Member, Hypermatrix, Matrix, Module.Member, VectorSpace.Member, SquareMatrix, Member

public class DoubleSymmetricMatrix
extends DoubleSquareMatrix
implements java.lang.Cloneable, java.io.Serializable

The DoubleSquareMatrix 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.DoubleSquareMatrix
matrix
 
Fields inherited from class org.jscience.mathematics.algebraic.matrices.AbstractDoubleSquareMatrix
LU, LUpivot
 
Constructor Summary
DoubleSymmetricMatrix(double[][] array)
          Constructs a matrix by wrapping an array.
DoubleSymmetricMatrix(DoubleSymmetricMatrix mat)
          Copy constructor.
DoubleSymmetricMatrix(DoubleVector[] array)
          Constructs a matrix from an array of vectors (columns).
DoubleSymmetricMatrix(int size)
          Constructs an empty matrix.
 
Method Summary
 java.lang.Object clone()
          Clone matrix into a new matrix.
 void setElement(int i, int j, double x)
          Also sets the symmetric element.
 
Methods inherited from class org.jscience.mathematics.algebraic.matrices.DoubleSquareMatrix
add, add, choleskyDecompose, det, directSum, equals, frobeniusNorm, getPrimitiveElement, infNorm, inverse, luDecompose, mapElements, multiply, multiply, multiply, negate, polarDecompose, qrDecompose, scalarDivide, scalarMultiply, scalarProduct, scalarProduct, setAllElements, singularValueDecompose, subtract, subtract, tensorProduct, toComplexMatrix, toIntegerMatrix, toPrimitiveArray, toString, trace, transpose
 
Methods inherited from class org.jscience.mathematics.algebraic.matrices.AbstractDoubleSquareMatrix
add, isSymmetric, isUnitary, operatorNorm, scalarProduct, subtract
 
Methods inherited from class org.jscience.mathematics.algebraic.matrices.AbstractDoubleMatrix
abs, add, directSum, equals, equals, getColumn, getElement, getMatrixAsColumns, getMatrixAsRows, getRow, getSet, getSubMatrix, hashCode, horizontalAxisSymmetry, mass, max, mean, min, 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.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

DoubleSymmetricMatrix

public DoubleSymmetricMatrix(int size)
Constructs an empty matrix.

Parameters:
size - the number of rows/columns.

DoubleSymmetricMatrix

public DoubleSymmetricMatrix(double[][] array)
Constructs a matrix by wrapping an array.

Parameters:
array - an assigned value.

DoubleSymmetricMatrix

public DoubleSymmetricMatrix(DoubleVector[] array)
Constructs a matrix from an array of vectors (columns).

Parameters:
array - an assigned value.

DoubleSymmetricMatrix

public DoubleSymmetricMatrix(DoubleSymmetricMatrix mat)
Copy constructor.

Parameters:
mat - an assigned value.
Method Detail

setElement

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

Overrides:
setElement in class DoubleSquareMatrix
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 DoubleSquareMatrix
Returns:
the cloned matrix.