org.jscience.mathematics.algebraic
Interface Matrix

All Superinterfaces:
Hypermatrix
All Known Subinterfaces:
BandedMatrix, DiagonalMatrix, SquareMatrix, SymmetricMatrix, TriangularMatrix, TridiagonalMatrix, Vector
All Known Implementing Classes:
AbstractBandedMatrix, AbstractBooleanVector, AbstractComplexMatrix, AbstractComplexSquareMatrix, AbstractComplexVector, AbstractDiagonalMatrix, AbstractDoubleMatrix, AbstractDoubleSquareMatrix, AbstractDoubleVector, AbstractIntegerMatrix, AbstractIntegerSquareMatrix, AbstractIntegerVector, AbstractMatrix, AbstractSquareMatrix, AbstractSymmetricMatrix, AbstractTriangularMatrix, AbstractTridiagonalMatrix, AbstractVector, BooleanMatrix, BooleanVector, BraVector, Complex2Vector, Complex3Vector, ComplexDiagonalMatrix, ComplexMatrix, ComplexSparseMatrix, ComplexSparseSquareMatrix, ComplexSparseVector, ComplexSquareMatrix, ComplexSymmetricMatrix, ComplexTridiagonalMatrix, ComplexVector, Double2Vector, Double3Vector, DoubleDiagonalMatrix, DoubleMatrix, DoubleSparseMatrix, DoubleSparseSquareMatrix, DoubleSparseVector, DoubleSquareMatrix, DoubleSymmetricMatrix, DoubleTridiagonalMatrix, DoubleVector, GammaMatrix, Integer2Vector, Integer3Vector, IntegerDiagonalMatrix, IntegerMatrix, IntegerSparseMatrix, IntegerSparseSquareMatrix, IntegerSparseVector, IntegerSquareMatrix, IntegerSymmetricMatrix, IntegerTridiagonalMatrix, IntegerVector, KetVector, RingMatrix, RingVector

public interface Matrix
extends Hypermatrix

The Matrix superclass provides an abstract encapsulation for traditional 2D matrices. Concrete implementations of this class should implement additional interfaces. See subclasses.


Method Summary
 Vector getColumn(int j)
          Returns the ith column.
 java.lang.Number getElement(int i, int j)
          Returns the element at position i,j.
 Vector getRow(int i)
          Returns the ith row.
 int numColumns()
          Returns the number of columns.
 int numRows()
          Returns the number of rows.
 java.lang.Number[][] toArray(Matrix v)
          Converts a matrix to an array.
 Matrix transpose()
          Returns the transpose of this matrix.
 
Methods inherited from interface org.jscience.mathematics.algebraic.Hypermatrix
getDimensions, getElement, numDimensions, numElements, numElements, toArray, toArray
 

Method Detail

numRows

int numRows()
Returns the number of rows.

Returns:
DOCUMENT ME!

numColumns

int numColumns()
Returns the number of columns.

Returns:
DOCUMENT ME!

getElement

java.lang.Number getElement(int i,
                            int j)
                            throws IllegalDimensionException
Returns the element at position i,j.

Parameters:
i - DOCUMENT ME!
j - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IllegalDimensionException - DOCUMENT ME!

toArray

java.lang.Number[][] toArray(Matrix v)
Converts a matrix to an array.

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

getRow

Vector getRow(int i)
Returns the ith row.

Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

getColumn

Vector getColumn(int j)
Returns the ith column.

Parameters:
j - DOCUMENT ME!
Returns:
DOCUMENT ME!

transpose

Matrix transpose()
Returns the transpose of this matrix.

Returns:
DOCUMENT ME!