Class SparseFieldVector<T extends FieldElement<T>>

  • Type Parameters:
    T - the type of the field elements
    All Implemented Interfaces:
    Serializable, FieldVector<T>

    public class SparseFieldVector<T extends FieldElement<T>>
    extends Object
    implements FieldVector<T>, Serializable
    This class implements the FieldVector interface with a OpenIntToFieldHashMap backing store.

    Caveat: This implementation assumes that, for any x, the equality x * 0d == 0d holds. But it is is not true for NaN. Moreover, zero entries will lose their sign. Some operations (that involve NaN and/or infinities) may thus give incorrect results.

    See Also:
    Serialized Form