Class VectorIterator
java.lang.Object
org.la4j.iterator.VectorIterator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.la4j.iterator.CursorIteratorandAlso(org.la4j.iterator.CursorIterator those, org.la4j.iterator.JoinFunction function) andAlsoDivide(VectorIterator those) andAlsoMultiply(VectorIterator those) protected intcursor()abstract doubleget()abstract intindex()Returns an index of the current cell.doubleinnerProduct(VectorIterator those) protected org.la4j.iterator.CursorIteratororElse(org.la4j.iterator.CursorIterator those, org.la4j.iterator.JoinFunction function) orElseAdd(VectorIterator those) orElseSubtract(VectorIterator those) voidremove()abstract voidset(double value) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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() -
get
public abstract double get() -
set
public abstract void set(double value) -
orElse
protected org.la4j.iterator.CursorIterator orElse(org.la4j.iterator.CursorIterator those, org.la4j.iterator.JoinFunction function) -
andAlso
protected org.la4j.iterator.CursorIterator andAlso(org.la4j.iterator.CursorIterator those, org.la4j.iterator.JoinFunction function) -
remove
-