Class SparseVectorIterator

    • Field Detail

      • hasExclude

        protected boolean hasExclude
      • exclude

        protected double exclude
      • size

        protected long size
      • assignedPos

        protected int assignedPos
      • assignedSize

        protected long assignedSize
      • defaultValue

        protected double defaultValue
      • pos

        protected long pos
      • nextPos

        protected long nextPos
      • value

        protected double value
      • nextValue

        protected double nextValue
    • Constructor Detail

      • SparseVectorIterator

        public SparseVectorIterator​(SparseVector vector)
      • SparseVectorIterator

        public SparseVectorIterator​(SparseVector vector,
                                    double exclude)
    • Method Detail

      • computeNextPosAndValue

        protected void computeNextPosAndValue()
      • getValue

        protected double getValue​(long pos)
      • getPosition

        public long getPosition()
        Description copied from interface: VectorIterator
        return linear position of current value in vector
        Specified by:
        getPosition in interface VectorIterator
        Returns: