Class SparseFieldVector<T extends FieldElement<T>>

java.lang.Object
org.apache.commons.math4.linear.SparseFieldVector<T>
Type Parameters:
T - the type of the field elements
All Implemented Interfaces:
java.io.Serializable, FieldVector<T>

public class SparseFieldVector<T extends FieldElement<T>>
extends java.lang.Object
implements FieldVector<T>, java.io.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.

Since:
2.0
See Also:
Serialized Form