Documentation of 'mikera.matrixx.impl.StridedElementIterator' Java class
StridedElementIterator
mikera.matrixx.impl

Class StridedElementIterator

  • All Implemented Interfaces:
    java.util.Iterator<java.lang.Double>


    public class StridedElementIterator
    extends java.lang.Object
    implements java.util.Iterator<java.lang.Double>
    Iterator over strided matrix array elements. This is an optimised / specialised element iterator for strided matrices that otherwise performs the same function as MatrixElementIterator. Performance tricks used: - Caches the data array reference - Caches the underlying stride data to avoid re-checking the strided matrix - Hopefully fits the full iterator data in a 64-byte cache line
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean hasNext() 
      java.lang.Double next() 
      void remove() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • StridedElementIterator

        public StridedElementIterator(AStridedMatrix a)
      • StridedElementIterator

        public StridedElementIterator(double[] array,
                                      int rows,
                                      int cols,
                                      int arrayOffset,
                                      int rowStride,
                                      int colStride)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.lang.Double>
      • next

        public java.lang.Double next()
        Specified by:
        next in interface java.util.Iterator<java.lang.Double>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<java.lang.Double>

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.