Class OpenMapRealVector

  • All Implemented Interfaces:
    Serializable

    public class OpenMapRealVector
    extends SparseRealVector
    implements Serializable
    This class implements the RealVector interface with a OpenIntToDoubleHashMap 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, like multiplications, divisions or functions mapping.

    Since:
    2.0
    See Also:
    Serialized Form