org.jscience.mathematics.algebraic
Class AbstractSquareMatrix

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

public abstract class AbstractSquareMatrix
extends AbstractMatrix
implements SquareMatrix

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

See Also:
Serialized Form

Constructor Summary
AbstractSquareMatrix(int rows)
          Constructs a matrix.
AbstractSquareMatrix(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

AbstractSquareMatrix

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

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

AbstractSquareMatrix

public AbstractSquareMatrix(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
Returns:
DOCUMENT ME!