Class SparseFieldMatrix<T extends FieldElement<T>>

java.lang.Object
org.apache.commons.math.linear.AbstractFieldMatrix<T>
org.apache.commons.math.linear.SparseFieldMatrix<T>
Type Parameters:
T - the type of the field elements
All Implemented Interfaces:
AnyMatrix, FieldMatrix<T>

public class SparseFieldMatrix<T extends FieldElement<T>> extends AbstractFieldMatrix<T>
Sparse matrix implementation based on an open addressed map.
Since:
2.0
Version:
$Revision: 811685 $ $Date: 2009-09-05 19:36:48 +0200 (sam. 05 sept. 2009) $
  • Constructor Details

    • SparseFieldMatrix

      public SparseFieldMatrix(Field<T> field)
      Creates a matrix with no data.
      Parameters:
      field - field to which the elements belong
    • SparseFieldMatrix

      public SparseFieldMatrix(Field<T> field, int rowDimension, int columnDimension) throws IllegalArgumentException
      Create a new SparseFieldMatrix with the supplied row and column dimensions.
      Parameters:
      field - field to which the elements belong
      rowDimension - the number of rows in the new matrix
      columnDimension - the number of columns in the new matrix
      Throws:
      IllegalArgumentException - if row or column dimension is not positive
    • SparseFieldMatrix

      public SparseFieldMatrix(SparseFieldMatrix<T> other)
      Copy constructor.
      Parameters:
      other - The instance to copy
    • SparseFieldMatrix

      public SparseFieldMatrix(FieldMatrix<T> other)
      Generic copy constructor.
      Parameters:
      other - The instance to copy
  • Method Details