Class Access2D.RowView<N extends Comparable<N>>
java.lang.Object
org.ojalgo.structure.Access2D.RowView<N>
- All Implemented Interfaces:
Comparable<Access2D.RowView<N>>, Iterable<Access2D.RowView<N>>, Iterator<Access2D.RowView<N>>, Spliterator<Access2D.RowView<N>>, Access1D<N>, Access1D.Collectable<N,Mutate1D>, Mutate1D, Structure1D
- Direct Known Subclasses:
HouseholderRow, RowsSupplier.SingleView
- Enclosing interface:
Access2D<N extends Comparable<N>>
public static class Access2D.RowView<N extends Comparable<N>>
extends Object
implements Access1D<N>, Iterable<Access2D.RowView<N>>, Iterator<Access2D.RowView<N>>, Spliterator<Access2D.RowView<N>>, Comparable<Access2D.RowView<N>>, Access1D.Collectable<N,Mutate1D>, Mutate1D
-
Nested Class Summary
Nested classes/interfaces inherited from interface Access1D
Access1D.Aggregatable<N>, Access1D.Collectable<N,R>, Access1D.ElementView<N>, Access1D.SelectionView<N>, Access1D.Sliceable<N>, Access1D.Visitable<N> Nested classes/interfaces inherited from interface Mutate1D
Mutate1D.Fillable<N>, Mutate1D.Mixable<N>, Mutate1D.Modifiable<N>, Mutate1D.ModifiableReceiver<N>, Mutate1D.Receiver<N>, Mutate1D.SortableNested classes/interfaces inherited from interface Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS, T_SPLITR> Nested classes/interfaces inherited from interface Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S,B>, Structure1D.LongIndex, Structure1D.LoopCallback -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intprivate final longprivate final Mutate2Dprivate longFields inherited from interface Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintcompareTo(Access2D.RowView<N> other) longcount()The total number of elements in this structure.doubledoubleValue(int index) longvoidforEachRemaining(Consumer<? super Access2D.RowView<N>> action) get(long index) voidgoToRow(long row) booleanhasNext()booleaniterator()next()previous()voidremove()longrow()voidset(int index, double value) voidset(long index, Comparable<?> value) Optional operation.intsize()The total number of elements in this structure.stream()voidtoString()booleantryAdvance(Consumer<? super Access2D.RowView<N>> action) trySplit()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Access1D
asCollectable1D, asKeyed1D, asList, axpy, byteValue, byteValue, dot, doubleValue, elements, floatValue, floatValue, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toList, toRawCopy1DMethods inherited from interface Access1D.Collectable
collectMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Mutate1D
reset, set, set, set, set, set, set, set, set, set, set, setMethods inherited from interface Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristics
-
Field Details
-
CHARACTERISTICS
static final int CHARACTERISTICS- See Also:
-
myAccess2D
-
myLastRow
private final long myLastRow -
myMutate2D
-
myRow
private long myRow
-
-
Constructor Details
-
RowView
-
RowView
-
RowView
-
-
Method Details
-
characteristics
public int characteristics()- Specified by:
characteristicsin interfaceSpliterator<N extends Comparable<N>>
-
compareTo
- Specified by:
compareToin interfaceComparable<N extends Comparable<N>>
-
count
public long count()Description copied from interface:Structure1DThe 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:
countin interfaceStructure1D
-
doubleValue
public double doubleValue(int index) - Specified by:
doubleValuein interfaceAccess1D<N extends Comparable<N>>
-
estimateSize
public long estimateSize()- Specified by:
estimateSizein interfaceSpliterator<N extends Comparable<N>>
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceIterator<N extends Comparable<N>>- Specified by:
forEachRemainingin interfaceSpliterator<N extends Comparable<N>>
-
get
-
goToRow
public void goToRow(long row) -
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<N extends Comparable<N>>
-
hasPrevious
public boolean hasPrevious() -
iterator
- Specified by:
iteratorin interfaceIterable<N extends Comparable<N>>
-
next
- Specified by:
nextin interfaceIterator<N extends Comparable<N>>
-
previous
-
remove
public void remove()- Specified by:
removein interfaceIterator<N extends Comparable<N>>
-
row
public long row() -
set
-
set
Optional operation.- Specified by:
setin interfaceMutate1D- Throws:
UnsupportedOperationException- if the underlyingAccess2Dis not also aMutate2D.
-
size
public int size()Description copied from interface:Structure1DThe total number of elements in this structure.- Specified by:
sizein interfaceStructure1D
-
stream
-
supplyTo
- Specified by:
supplyToin interfaceAccess1D.Collectable<N extends Comparable<N>, Mutate1D>
-
toString
-
tryAdvance
- Specified by:
tryAdvancein interfaceSpliterator<N extends Comparable<N>>
-
trySplit
- Specified by:
trySplitin interfaceSpliterator<N extends Comparable<N>>
-