Class RowsSupplier.SingleView<N extends Comparable<N>>
java.lang.Object
org.ojalgo.structure.Access2D.RowView<N>
org.ojalgo.matrix.store.RowsSupplier.SingleView<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>, Access2D.Collectable<N, PhysicalStore<N>>, Mutate1D, Structure1D, Structure2D
- Enclosing class:
RowsSupplier<N extends Comparable<N>>
public static final class RowsSupplier.SingleView<N extends Comparable<N>>
extends Access2D.RowView<N>
implements Access2D.Collectable<N, PhysicalStore<N>>
-
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 Nested classes/interfaces inherited from interface Structure2D
Structure2D.IntRowColumn, Structure2D.Logical<S,B>, Structure2D.LongRowColumn, Structure2D.ReducibleTo1D<R>, Structure2D.Reshapable, Structure2D.RowColumnKey<R, C>, Structure2D.RowColumnMapper<R, C> -
Field Summary
FieldsFields inherited from interface Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.longOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.ElementView1D<N, ?> elements()Returns an Iterable of ElementView1D.intprivate SparseArray<N> intElementView1D<N, ?> nonzeros()Similar toAccess1D.elements()but avoids elements that are structurally known to be zero.voidsupplyTo(PhysicalStore<N> receiver) Methods inherited from class Access2D.RowView
characteristics, compareTo, count, doubleValue, estimateSize, forEachRemaining, get, goToRow, hasNext, hasPrevious, iterator, next, previous, remove, row, set, set, size, stream, supplyTo, toString, tryAdvance, trySplitMethods 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, floatValue, floatValue, intValue, intValue, longValue, longValue, select, shortValue, shortValue, supplyTo, toList, toRawCopy1DMethods inherited from interface Access1D.Collectable
collectMethods inherited from interface Access2D.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, hasCharacteristicsMethods inherited from interface Structure2D
count, firstInColumn, firstInRow, getMaxDim, getMinDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
Field Details
-
myBase
-
-
Constructor Details
-
SingleView
SingleView(RowsSupplier<N> base)
-
-
Method Details
-
countColumns
public long countColumns()Description copied from interface:Structure2DOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countColumnsin interfaceStructure2D- Returns:
- The number of columns
-
countRows
public long countRows()Description copied from interface:Structure2DOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.- Specified by:
countRowsin interfaceStructure2D- Returns:
- The number of rows
-
elements
-
getColDim
public int getColDim()- Specified by:
getColDimin interfaceStructure2D- Returns:
- The number of columns
-
getRowDim
public int getRowDim()- Specified by:
getRowDimin interfaceStructure2D- Returns:
- The number of rows
-
nonzeros
Description copied from interface:Access1DSimilar toAccess1D.elements()but avoids elements that are structurally known to be zero. (That does not eliminate all zero-values from this view.) With an arbitrary (dense) unstructured implementation theAccess1D.nonzeros()andAccess1D.elements()methods do the same thing! Only some specific implementations are able to actually exploit structure/sparsity to view fewer elements.- Specified by:
nonzerosin interfaceAccess1D<N extends Comparable<N>>
-
supplyTo
- Specified by:
supplyToin interfaceAccess2D.Collectable<N extends Comparable<N>, PhysicalStore<N extends Comparable<N>>>
-
getCurrent
-