Package org.la4j.iterator
Class VectorIterator
- java.lang.Object
-
- org.la4j.iterator.CursorIterator
-
- org.la4j.iterator.VectorIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Double>
- Direct Known Subclasses:
CursorToVectorIterator
public abstract class VectorIterator extends CursorIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected intlength
-
Constructor Summary
Constructors Constructor Description VectorIterator(int length)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description VectorIteratorandAlsoDivide(VectorIterator those)VectorIteratorandAlsoMultiply(VectorIterator those)protected intcursor()abstract intindex()Returns an index of the current cell.doubleinnerProduct(VectorIterator those)VectorIteratororElseAdd(VectorIterator those)VectorIteratororElseSubtract(VectorIterator those)
-
-
-
Method Detail
-
index
public abstract int index()
Returns an index of the current cell.- Returns:
- an index of the current cell
-
orElseAdd
public VectorIterator orElseAdd(VectorIterator those)
-
orElseSubtract
public VectorIterator orElseSubtract(VectorIterator those)
-
andAlsoMultiply
public VectorIterator andAlsoMultiply(VectorIterator those)
-
andAlsoDivide
public VectorIterator andAlsoDivide(VectorIterator those)
-
innerProduct
public double innerProduct(VectorIterator those)
-
cursor
protected int cursor()
- Specified by:
cursorin classCursorIterator
-
-