org.jscience.mathematics.algebraic
Class AbstractDiagonalMatrix

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.AbstractBandedMatrix
                  extended by org.jscience.mathematics.algebraic.AbstractTridiagonalMatrix
                      extended by org.jscience.mathematics.algebraic.AbstractDiagonalMatrix
All Implemented Interfaces:
java.io.Serializable, Algebra.Member, BandedMatrix, DiagonalMatrix, Ring.Member, AbelianGroup.Member, Hypermatrix, Matrix, Module.Member, VectorSpace.Member, SquareMatrix, TridiagonalMatrix, Member

public abstract class AbstractDiagonalMatrix
extends AbstractTridiagonalMatrix
implements DiagonalMatrix

This class defines an interface for Matrix whose all elements but the ones on the diagonal are zero.

See Also:
Serialized Form

Constructor Summary
AbstractDiagonalMatrix(int rows)
          Creates a new AbstractDiagonalMatrix object.
 
Method Summary
 
Methods inherited from class org.jscience.mathematics.algebraic.AbstractBandedMatrix
getK1, getK2
 
Methods inherited from class org.jscience.mathematics.algebraic.AbstractSquareMatrix
isSymmetric
 
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.BandedMatrix
getK1, getK2
 
Methods inherited from interface org.jscience.mathematics.algebraic.SquareMatrix
isSymmetric
 
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

AbstractDiagonalMatrix

public AbstractDiagonalMatrix(int rows)
Creates a new AbstractDiagonalMatrix object.

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