Documentation API of the 'org.jscience.mathematics.vector.SparseMatrix' Java class
SparseMatrix
org.jscience.mathematics.vector

Class SparseMatrix<F extends Field<F>>

  • All Implemented Interfaces:
    javolution.lang.Immutable, javolution.lang.Realtime, javolution.lang.ValueType, GroupAdditive<Matrix<F>>, Ring<Matrix<F>>, Structure<Matrix<F>>, VectorSpace<Matrix<F>,F>


    public final class SparseMatrix<F extends Field<F>>extends Matrix<F>

    This class represents a matrix made of sparse vectors (as rows). To create a sparse matrix made of column vectors the transpose() method can be used. For example:

            SparseVector<Rational> column0 = SparseVector.valueOf(...);        SparseVector<Rational> column1 = SparseVector.valueOf(...);        SparseMatrix<Rational> M = SparseMatrix.valueOf(column0, column1).transpose();     

    As for any concrete structure, this class is declared final (otherwise most operations would have to be overridden to return the appropriate type). Specialized dense matrix should sub-class Matrix directly. For example:

            // Extension through composition.        final class BandMatrix <F extends Field<F>> extends Matrix<F> {             private SparseMatrix<F> _value;             ...             public BandMatrix opposite() { // Returns the right type.                 return BandMatrix.valueOf(_value.opposite());             }             ...        }

Warning: You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.