Package org.ojalgo.matrix.store
Class Subregion2D.RowsRegion<N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.matrix.store.Subregion2D<N>
-
- org.ojalgo.matrix.store.Subregion2D.RowsRegion<N>
-
- All Implemented Interfaces:
java.util.function.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 java.lang.Comparable<N>>
static final class Subregion2D.RowsRegion<N extends java.lang.Comparable<N>> extends Subregion2D<N>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ojalgo.matrix.store.Subregion2D
Subregion2D.ColumnsRegion<N extends java.lang.Comparable<N>>, Subregion2D.LimitRegion<N extends java.lang.Comparable<N>>, Subregion2D.OffsetRegion<N extends java.lang.Comparable<N>>, Subregion2D.RowsRegion<N extends java.lang.Comparable<N>>, Subregion2D.SynchronizedRegion<N extends java.lang.Comparable<N>>, Subregion2D.TransposedRegion<N extends java.lang.Comparable<N>>, Subregion2D.WrapperRegion<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access2D
Access2D.Aggregatable<N extends java.lang.Comparable<N>>, Access2D.Collectable<N extends java.lang.Comparable<N>,R extends Mutate2D>, Access2D.ColumnView<N extends java.lang.Comparable<N>>, Access2D.ElementView<N extends java.lang.Comparable<N>>, Access2D.RowView<N extends java.lang.Comparable<N>>, Access2D.SelectionView<N extends java.lang.Comparable<N>>, Access2D.Sliceable<N extends java.lang.Comparable<N>>, Access2D.Visitable<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate1D
Mutate1D.Fillable<N extends java.lang.Comparable<N>>, Mutate1D.Mixable<N extends java.lang.Comparable<N>>, Mutate1D.Modifiable<N extends java.lang.Comparable<N>>, Mutate1D.ModifiableReceiver<N extends java.lang.Comparable<N>>, Mutate1D.Receiver<N extends java.lang.Comparable<N>>, Mutate1D.Sortable
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate2D
Mutate2D.Exchangeable, Mutate2D.Fillable<N extends java.lang.Comparable<N>>, Mutate2D.Mixable<N extends java.lang.Comparable<N>>, Mutate2D.Modifiable<N extends java.lang.Comparable<N>>, Mutate2D.ModifiableReceiver<N extends java.lang.Comparable<N>>, Mutate2D.Receiver<N extends java.lang.Comparable<N>>
-
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>
-
Nested classes/interfaces inherited from interface org.ojalgo.matrix.store.TransformableRegion
TransformableRegion.FillByMultiplying<N extends java.lang.Comparable<N>>
-
-
Field Summary
Fields Modifier and Type Field Description private TransformableRegion<N>
myBase
private int[]
myRows
-
Constructor Summary
Constructors Constructor Description RowsRegion(TransformableRegion<N> base, TransformableRegion.FillByMultiplying<N> multiplier, int... rows)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long row, long col, double addend)
void
add(long row, long col, java.lang.Comparable<?> addend)
long
countColumns()
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.long
countRows()
Only need to implement if the structure may contain more than Integer.MAX_VALUE elements.double
doubleValue(int row, int col)
Extracts one element of this matrix as a double.boolean
equals(java.lang.Object obj)
void
fillRow(long row, long col, N value)
void
fillRow(long row, long col, NullaryFunction<?> supplier)
void
fillRow(long row, long col, Access1D<N> values)
N
get(long row, long col)
int
getColDim()
int
getRowDim()
int
hashCode()
void
modifyOne(long row, long col, UnaryFunction<N> modifier)
void
modifyRow(long row, long col, UnaryFunction<N> modifier)
void
set(int row, int col, double value)
void
set(long row, long col, java.lang.Comparable<?> value)
-
Methods inherited from class org.ojalgo.matrix.store.Subregion2D
fillByMultiplying, fillMatching, findMultiplier, regionByColumns, regionByLimits, regionByOffsets, regionByRows, regionByTransposing, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, axpy, dot, select, supplyTo, toRawCopy1D
-
Methods inherited from interface org.ojalgo.structure.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, toRawCopy2D
-
Methods inherited from interface org.ojalgo.structure.Mutate1D.Fillable
fillAll, fillAll, fillCompatible, fillMatching, fillMatching, fillRange, fillRange
-
Methods inherited from interface org.ojalgo.structure.Mutate1D.Modifiable
modifyAll, modifyMatching, modifyMatching, modifyRange
-
Methods inherited from interface org.ojalgo.structure.Mutate2D
set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set
-
Methods inherited from interface org.ojalgo.structure.Mutate2D.Fillable
fillColumn, fillColumn, fillColumn, fillColumn, fillColumn, fillColumn, fillCompatible, fillDiagonal, fillDiagonal, fillDiagonal, fillDiagonal, fillDiagonal, fillDiagonal, fillRow, fillRow, fillRow
-
Methods inherited from interface org.ojalgo.structure.Mutate2D.Modifiable
add, add, add, add, add, add, add, add, add, add, add, add, modifyColumn, modifyColumn, modifyDiagonal, modifyDiagonal, modifyMatchingInColumns, modifyMatchingInColumns, modifyMatchingInRows, modifyMatchingInRows, modifyOne, modifyRow
-
Methods inherited from interface org.ojalgo.structure.Mutate2D.ModifiableReceiver
modifyCompatible, modifyCompatible
-
Methods inherited from interface org.ojalgo.structure.Mutate2D.Receiver
accept, isAcceptable
-
Methods inherited from interface org.ojalgo.structure.Structure2D
count, firstInColumn, firstInRow, getMaxDim, getMinDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
Methods inherited from interface org.ojalgo.matrix.store.TransformableRegion
exchangeColumns, exchangeRows, modifyAny, synchronised
-
-
-
-
Field Detail
-
myBase
private final TransformableRegion<N extends java.lang.Comparable<N>> myBase
-
myRows
private final int[] myRows
-
-
Constructor Detail
-
RowsRegion
RowsRegion(TransformableRegion<N> base, TransformableRegion.FillByMultiplying<N> multiplier, int... rows)
-
-
Method Detail
-
add
public void add(long row, long col, java.lang.Comparable<?> addend)
-
add
public void add(long row, long col, double addend)
-
countColumns
public long countColumns()
Description copied from interface:Structure2D
Only 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:Structure2D
Only 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:Access2D
Extracts one element of this matrix as a double.- Parameters:
row
- A row index.col
- A column index.- Returns:
- One matrix element
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
fillRow
public void fillRow(long row, long col, N value)
-
fillRow
public void fillRow(long row, long col, NullaryFunction<?> supplier)
-
get
public N get(long row, long col)
-
getColDim
public int getColDim()
- Returns:
- The number of columns
-
getRowDim
public int getRowDim()
- Returns:
- The number of rows
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
modifyOne
public void modifyOne(long row, long col, UnaryFunction<N> modifier)
-
modifyRow
public void modifyRow(long row, long col, UnaryFunction<N> modifier)
-
set
public void set(int row, int col, double value)
-
set
public void set(long row, long col, java.lang.Comparable<?> value)
-
-