Class SparseVector.Entry

    • Constructor Detail

      • Entry

        public Entry​(int index,
                     double value)
    • Method Detail

      • index

        public int index()
        Gets the index of this entry in the sparse vector, counting from 1.
        Returns:
        the index
      • value

        public double value()
        Gets the value of this entry.
        Returns:
        the value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object