org.jscience.mathematics.algebraic
Class AbstractSymmetricMatrix

java.lang.Object
  extended by org.jscience.mathematics.algebraic.AbstractHypermatrix
      extended by org.jscience.mathematics.algebraic.AbstractMatrix
          extended by org.jscience.mathematics.algebraic.AbstractSquareMatrix
              extended by org.jscience.mathematics.algebraic.AbstractSymmetricMatrix
All Implemented Interfaces:
java.io.Serializable, Algebra.Member, Ring.Member, AbelianGroup.Member, Hypermatrix, Matrix, Module.Member, VectorSpace.Member, SquareMatrix, SymmetricMatrix, Member

public abstract class AbstractSymmetricMatrix
extends AbstractSquareMatrix
implements SymmetricMatrix

This class defines an interface for Matrices whose dimensions are equal, thus leading to a square matrix.

See Also:
Serialized Form

Constructor Summary
AbstractSymmetricMatrix(int rows)
          Constructs a matrix.
AbstractSymmetricMatrix(int rows, int cols)
          Constructs a matrix.
 
Method Summary
 boolean isSymmetric()
          DOCUMENT ME!
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jscience.mathematics.algebraic.Matrix
getColumn, getElement, getRow, numColumns, numRows, toArray, transpose
 
Methods inherited from interface org.jscience.mathematics.algebraic.Hypermatrix
getDimensions, getElement, numDimensions, numElements, numElements, toArray, toArray
 
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.groups.AbelianGroup.Member
add, negate, subtract
 
Methods inherited from interface org.jscience.mathematics.algebraic.fields.Ring.Member
multiply
 

Constructor Detail

AbstractSymmetricMatrix

public AbstractSymmetricMatrix(int rows,
                               int cols)
Constructs a matrix.

Parameters:
rows - DOCUMENT ME!
cols - DOCUMENT ME!
Throws:
IllegalDimensionException - DOCUMENT ME!

AbstractSymmetricMatrix

public AbstractSymmetricMatrix(int rows)
Constructs a matrix.

Parameters:
rows - DOCUMENT ME!
Throws:
IllegalDimensionException - DOCUMENT ME!
Method Detail

isSymmetric

public boolean isSymmetric()
DOCUMENT ME!

Specified by:
isSymmetric in interface SquareMatrix
Overrides:
isSymmetric in class AbstractSquareMatrix
Returns:
DOCUMENT ME!