Package org.la4j.iterator
Class VectorIterator
java.lang.Object
org.la4j.iterator.CursorIterator
org.la4j.iterator.VectorIterator
- Direct Known Subclasses:
CursorToVectorIterator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionandAlsoDivide
(VectorIterator those) andAlsoMultiply
(VectorIterator those) protected int
cursor()
abstract int
index()
Returns an index of the current cell.double
innerProduct
(VectorIterator those) orElseAdd
(VectorIterator those) orElseSubtract
(VectorIterator those) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next
-
Field Details
-
length
protected final int length
-
-
Constructor Details
-
VectorIterator
public VectorIterator(int length)
-
-
Method Details
-
index
public abstract int index()Returns an index of the current cell.- Returns:
- an index of the current cell
-
orElseAdd
-
orElseSubtract
-
andAlsoMultiply
-
andAlsoDivide
-
innerProduct
-
cursor
protected int cursor()- Specified by:
cursor
in classCursorIterator
-