org.jscience.mathematics.algebraic.matrices
Class IntegerSymmetricMatrix

java.lang.Object
  extended by org.jscience.mathematics.algebraic.AbstractHypermatrix
      extended by org.jscience.mathematics.algebraic.AbstractMatrix
          extended by org.jscience.mathematics.algebraic.matrices.AbstractIntegerMatrix
              extended by org.jscience.mathematics.algebraic.matrices.AbstractIntegerSquareMatrix
                  extended by org.jscience.mathematics.algebraic.matrices.IntegerSquareMatrix
                      extended by org.jscience.mathematics.algebraic.matrices.IntegerSymmetricMatrix
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 IntegerSymmetricMatrix
extends IntegerSquareMatrix
implements java.lang.Cloneable, java.io.Serializable

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

IntegerSymmetricMatrix

public IntegerSymmetricMatrix(int size)
Constructs an empty matrix.

Parameters:
size - the number of rows/columns.

IntegerSymmetricMatrix

public IntegerSymmetricMatrix(int[][] array)
Constructs a matrix by wrapping an array.

Parameters:
array - an assigned value.

IntegerSymmetricMatrix

public IntegerSymmetricMatrix(IntegerVector[] array)
Constructs a matrix from an array of vectors (columns).

Parameters:
array - an assigned value.

IntegerSymmetricMatrix

public IntegerSymmetricMatrix(IntegerSymmetricMatrix mat)
Copy constructor.

Parameters:
mat - an assigned value.
Method Detail

setElement

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

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