Class Subregion2D.RowsRegion<N extends Comparable<N>>
java.lang.Object
org.ojalgo.matrix.store.Subregion2D<N>
org.ojalgo.matrix.store.Subregion2D.RowsRegion<N>
- All Implemented Interfaces:
Consumer<Access2D<?>>, TransformableRegion<N>, Access1D<N>, Access2D<N>, Mutate1D, Mutate1D.Fillable<N>, Mutate1D.Modifiable<N>, Mutate2D, Mutate2D.Exchangeable, Mutate2D.Fillable<N>, Mutate2D.Modifiable<N>, Mutate2D.ModifiableReceiver<N>, Mutate2D.Receiver<N>, Structure1D, Structure2D
- Enclosing class:
Subregion2D<N extends Comparable<N>>
-
Nested Class Summary
Nested classes/interfaces inherited from class Subregion2D
Subregion2D.ColumnsRegion<N>, Subregion2D.LimitRegion<N>, Subregion2D.OffsetRegion<N>, Subregion2D.RowsRegion<N>, Subregion2D.SynchronizedRegion<N>, Subregion2D.TransposedRegion<N>, Subregion2D.WrapperRegion<N>Nested classes/interfaces inherited from interface Access2D
Access2D.Aggregatable<N>, Access2D.Collectable<N,R>, Access2D.ColumnView<N>, Access2D.ElementView<N>, Access2D.RowView<N>, Access2D.SelectionView<N>, Access2D.Sliceable<N>, Access2D.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 Mutate2D
Mutate2D.Exchangeable, Mutate2D.Fillable<N>, Mutate2D.Mixable<N>, Mutate2D.Modifiable<N>, Mutate2D.ModifiableReceiver<N>, Mutate2D.Receiver<N>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> Nested classes/interfaces inherited from interface TransformableRegion
TransformableRegion.FillByMultiplying<N> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRowsRegion(TransformableRegion<N> base, TransformableRegion.FillByMultiplying<N> multiplier, int... rows) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int row, int col, double addend) voidadd(long row, long col, double addend) voidadd(long row, long col, Comparable<?> addend) longOnly 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.doubledoubleValue(int row, int col) Extracts one element of this matrix as a double.booleanvoidvoidfillRow(long row, long col, NullaryFunction<?> supplier) voidget(long row, long col) intintinthashCode()voidmodifyOne(long row, long col, UnaryFunction<N> modifier) voidmodifyRow(long row, long col, UnaryFunction<N> modifier) voidset(int row, int col, double value) voidset(long row, long col, Comparable<?> value) Methods inherited from class Subregion2D
fillByMultiplying, fillMatching, findMultiplier, findMultiplier, regionByColumns, regionByLimits, regionByOffsets, regionByRows, regionByTransposing, toStringMethods inherited from interface Access1D
asCollectable1D, asKeyed1D, asList, axpy, dot, select, supplyTo, toList, toRawCopy1DMethods inherited from interface Access2D
asCollectable2D, asKeyed2D, byteValue, byteValue, byteValue, byteValue, columns, columns, columns, doubleValue, doubleValue, doubleValue, elements, floatValue, floatValue, floatValue, floatValue, get, intValue, intValue, intValue, intValue, longValue, longValue, longValue, longValue, nonzeros, rows, rows, rows, select, select, shortValue, shortValue, shortValue, shortValue, toRawCopy2DMethods inherited from interface Mutate1D.Fillable
fillAll, fillAll, fillCompatible, fillMatching, fillMatching, fillMatching, fillRange, fillRangeMethods inherited from interface Mutate1D.Modifiable
add, add, add, add, add, modifyAll, modifyMatching, modifyMatching, modifyRangeMethods inherited from interface Mutate2D
set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setMethods inherited from interface Mutate2D.Fillable
fillColumn, fillColumn, fillColumn, fillColumn, fillColumn, fillColumn, fillCompatible, fillDiagonal, fillDiagonal, fillDiagonal, fillDiagonal, fillDiagonal, fillDiagonal, fillRow, fillRow, fillRowMethods inherited from interface Mutate2D.Modifiable
add, add, add, add, add, add, add, add, add, add, add, add, add, modifyColumn, modifyColumn, modifyDiagonal, modifyDiagonal, modifyMatchingInColumns, modifyMatchingInColumns, modifyMatchingInRows, modifyMatchingInRows, modifyOne, modifyRowMethods inherited from interface Mutate2D.ModifiableReceiver
modifyCompatible, modifyCompatibleMethods inherited from interface Mutate2D.Receiver
accept, isAcceptableMethods inherited from interface Structure2D
count, firstInColumn, firstInRow, getMaxDim, getMinDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, sizeMethods inherited from interface TransformableRegion
exchangeColumns, exchangeRows, modifyAny, synchronised
-
Field Details
-
myBase
-
myRows
private final int[] myRows
-
-
Constructor Details
-
RowsRegion
RowsRegion(TransformableRegion<N> base, TransformableRegion.FillByMultiplying<N> multiplier, int... rows)
-
-
Method Details
-
add
public void add(int row, int col, double addend) -
add
-
add
public void add(long row, long col, double addend) -
countColumns
public long countColumns()Description copied from interface:Structure2DOnly need to implement if the structure may contain more than Integer.MAX_VALUE elements.- 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.- Returns:
- The number of rows
-
doubleValue
public double doubleValue(int row, int col) Description copied from interface:Access2DExtracts one element of this matrix as a double.- Parameters:
row- A row index.col- A column index.- Returns:
- One matrix element
-
equals
-
fillRow
-
fillRow
-
fillRow
-
get
-
getColDim
public int getColDim()- Returns:
- The number of columns
-
getRowDim
public int getRowDim()- Returns:
- The number of rows
-
hashCode
-
modifyOne
-
modifyRow
-
set
public void set(int row, int col, double value) -
set
-