mikera.matrixx.impl
Class StridedElementIterator
- java.lang.Object
-
- mikera.matrixx.impl.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
-
-
Constructor Summary
Constructors Constructor and Description StridedElementIterator(AStridedMatrix a)StridedElementIterator(double[] array, int rows, int cols, int arrayOffset, int rowStride, int colStride)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanhasNext()java.lang.Doublenext()voidremove()
-
-
-
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:
hasNextin interfacejava.util.Iterator<java.lang.Double>
-
next
public java.lang.Double next()
- Specified by:
nextin interfacejava.util.Iterator<java.lang.Double>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<java.lang.Double>
-
-
DMelt 3.0 © DataMelt by jWork.ORG