Package org.ojalgo.structure
Class Access2D.RowView<N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.structure.Access2D.RowView<N>
-
- All Implemented Interfaces:
java.lang.Comparable<Access2D.RowView<N>>
,java.lang.Iterable<Access2D.RowView<N>>
,java.util.Iterator<Access2D.RowView<N>>
,java.util.Spliterator<Access2D.RowView<N>>
,Access1D<N>
,Access1D.Collectable<N,Mutate1D>
,Structure1D
- Direct Known Subclasses:
HouseholderRow
,RowsSupplier.SingleView
public static class Access2D.RowView<N extends java.lang.Comparable<N>> extends java.lang.Object implements Access1D<N>, java.lang.Iterable<Access2D.RowView<N>>, java.util.Iterator<Access2D.RowView<N>>, java.util.Spliterator<Access2D.RowView<N>>, java.lang.Comparable<Access2D.RowView<N>>, Access1D.Collectable<N,Mutate1D>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends java.lang.Comparable<N>>, Access1D.Collectable<N extends java.lang.Comparable<N>,R extends Mutate1D>, Access1D.ElementView<N extends java.lang.Comparable<N>>, Access1D.SelectionView<N extends java.lang.Comparable<N>>, Access1D.Sliceable<N extends java.lang.Comparable<N>>, Access1D.Visitable<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface java.util.Spliterator
java.util.Spliterator.OfDouble, java.util.Spliterator.OfInt, java.util.Spliterator.OfLong, java.util.Spliterator.OfPrimitive<T extends java.lang.Object,T_CONS extends java.lang.Object,T_SPLITR extends java.util.Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S,B>>, Structure1D.LongIndex, Structure1D.LoopCallback
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
CHARACTERISTICS
private Access2D<N>
myDelegate2D
private long
myLastRow
private long
myRow
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
characteristics()
int
compareTo(Access2D.RowView<N> other)
long
count()
The total number of elements in this structure.double
doubleValue(int index)
long
estimateSize()
void
forEachRemaining(java.util.function.Consumer<? super Access2D.RowView<N>> action)
N
get(long index)
void
goToRow(long row)
boolean
hasNext()
boolean
hasPrevious()
Access2D.RowView<N>
iterator()
Access2D.RowView<N>
next()
Access2D.RowView<N>
previous()
void
remove()
long
row()
int
size()
The total number of elements in this structure.java.util.stream.Stream<Access2D.RowView<N>>
stream()
void
supplyTo(Mutate1D receiver)
java.lang.String
toString()
boolean
tryAdvance(java.util.function.Consumer<? super Access2D.RowView<N>> action)
java.util.Spliterator<Access2D.RowView<N>>
trySplit()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, axpy, byteValue, byteValue, dot, doubleValue, elements, floatValue, floatValue, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toRawCopy1D
-
Methods inherited from interface org.ojalgo.structure.Access1D.Collectable
collect
-
-
-
-
Field Detail
-
CHARACTERISTICS
static final int CHARACTERISTICS
- See Also:
- Constant Field Values
-
myLastRow
private final long myLastRow
-
myRow
private long myRow
-
-
Method Detail
-
characteristics
public int characteristics()
-
compareTo
public int compareTo(Access2D.RowView<N> other)
-
count
public long count()
Description copied from interface:Structure1D
The total number of elements in this structure.You only need to implement this method if the structure can contain more than Integer.MAX_VALUE elements.
- Specified by:
count
in interfaceStructure1D
-
doubleValue
public double doubleValue(int index)
- Specified by:
doubleValue
in interfaceAccess1D<N extends java.lang.Comparable<N>>
-
estimateSize
public long estimateSize()
-
forEachRemaining
public void forEachRemaining(java.util.function.Consumer<? super Access2D.RowView<N>> action)
-
get
public N get(long index)
-
goToRow
public void goToRow(long row)
-
hasNext
public boolean hasNext()
-
hasPrevious
public boolean hasPrevious()
-
iterator
public Access2D.RowView<N> iterator()
-
next
public Access2D.RowView<N> next()
-
previous
public Access2D.RowView<N> previous()
-
remove
public void remove()
-
row
public long row()
-
size
public int size()
Description copied from interface:Structure1D
The total number of elements in this structure.- Specified by:
size
in interfaceStructure1D
-
stream
public java.util.stream.Stream<Access2D.RowView<N>> stream()
-
supplyTo
public void supplyTo(Mutate1D receiver)
- Specified by:
supplyTo
in interfaceAccess1D.Collectable<N extends java.lang.Comparable<N>,Mutate1D>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
tryAdvance
public boolean tryAdvance(java.util.function.Consumer<? super Access2D.RowView<N>> action)
-
trySplit
public java.util.Spliterator<Access2D.RowView<N>> trySplit()
-
-