Class SparseFieldMatrix<T extends FieldElement<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
    • Constructor Detail

      • 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