Module ojalgo
Package org.ojalgo.matrix.store
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 org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends Comparable<N>>, Access1D.Collectable<N extends Comparable<N>,R extends Mutate1D>, Access1D.ElementView<N extends Comparable<N>>, Access1D.SelectionView<N extends Comparable<N>>, Access1D.Sliceable<N extends Comparable<N>>, Access1D.Visitable<N extends Comparable<N>> Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate1D
Mutate1D.Fillable<N extends Comparable<N>>, Mutate1D.Mixable<N extends Comparable<N>>, Mutate1D.Modifiable<N extends Comparable<N>>, Mutate1D.ModifiableReceiver<N extends Comparable<N>>, Mutate1D.Receiver<N extends Comparable<N>>, Mutate1D.SortableNested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS, T_SPLITR extends 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 Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure2D
Structure2D.IntRowColumn, Structure2D.Logical<S extends Structure2D,B extends Structure2D.Logical<S, B>>, Structure2D.LongRowColumn, Structure2D.ReducibleTo1D<R extends Structure1D>, Structure2D.Reshapable, Structure2D.RowColumnKey<R, C>, Structure2D.RowColumnMapper<R, C> -
Field Summary
FieldsFields inherited from interface java.util.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 org.ojalgo.structure.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, asList, axpy, byteValue, byteValue, dot, doubleValue, floatValue, floatValue, intValue, intValue, longValue, longValue, select, shortValue, shortValue, supplyTo, toList, toRawCopy1DMethods inherited from interface org.ojalgo.structure.Access1D.Collectable
collectMethods inherited from interface org.ojalgo.structure.Access2D.Collectable
collectMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.ojalgo.structure.Mutate1D
reset, set, set, set, set, set, set, set, set, set, set, setMethods inherited from interface java.util.Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristicsMethods inherited from interface org.ojalgo.structure.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
Description copied from interface:Access1DReturns an Iterable of ElementView1D. It allows to iterate over the instance's element "positions" without actually extracting the elements (unless you explicitly do so).- Specified by:
elementsin interfaceAccess1D<N extends Comparable<N>>
-
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
-