Class Subregion2D<N extends Comparable<N>>
java.lang.Object
org.ojalgo.matrix.store.Subregion2D<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
- Direct Known Subclasses:
Subregion2D.ColumnsRegion, Subregion2D.LimitRegion, Subregion2D.OffsetRegion, Subregion2D.RowsRegion, Subregion2D.SynchronizedRegion, Subregion2D.TransposedRegion, Subregion2D.WrapperRegion
abstract class Subregion2D<N extends Comparable<N>>
extends Object
implements TransformableRegion<N>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classSubregion2D.ColumnsRegion<N extends Comparable<N>>(package private) static final classSubregion2D.LimitRegion<N extends Comparable<N>>(package private) static final classSubregion2D.OffsetRegion<N extends Comparable<N>>(package private) static final classSubregion2D.RowsRegion<N extends Comparable<N>>(package private) static final classSubregion2D.SynchronizedRegion<N extends Comparable<N>>(package private) static final classSubregion2D.TransposedRegion<N extends Comparable<N>>(package private) static final classSubregion2D.WrapperRegion<N extends Comparable<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
ConstructorsConstructorDescriptionSubregion2D(TransformableRegion.FillByMultiplying<N> multiplier, long rows, long columns) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfillByMultiplying(Access1D<N> left, Access1D<N> right) voidfillMatching(Access1D<?> values) Will fill the elements of [this] with the corresponding input values, and in the process (if necessary) convert the elements to the correct type:this(i) = values(i)(package private) static <N extends Comparable<N>>
TransformableRegion.FillByMultiplying<N> findMultiplier(Class<?> type, int nbRows, int nbCols) (package private) static <N extends Comparable<N>>
TransformableRegion.FillByMultiplying<N> findMultiplier(MathType type, int nbRows, int nbCols) final TransformableRegion<N> regionByColumns(int... columns) final TransformableRegion<N> regionByLimits(int rowLimit, int columnLimit) final TransformableRegion<N> regionByOffsets(int rowOffset, int columnOffset) final TransformableRegion<N> regionByRows(int... rows) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, doubleValue, elements, floatValue, floatValue, floatValue, floatValue, get, 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, set, set, setMethods inherited from interface Mutate2D.Fillable
fillColumn, fillColumn, fillColumn, fillColumn, fillColumn, fillColumn, fillCompatible, fillDiagonal, fillDiagonal, fillDiagonal, fillDiagonal, fillDiagonal, fillDiagonal, fillRow, fillRow, fillRow, fillRow, fillRow, fillRowMethods inherited from interface Mutate2D.Modifiable
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, modifyColumn, modifyColumn, modifyDiagonal, modifyDiagonal, modifyMatchingInColumns, modifyMatchingInColumns, modifyMatchingInRows, modifyMatchingInRows, modifyOne, modifyOne, modifyRow, modifyRowMethods inherited from interface Mutate2D.ModifiableReceiver
modifyCompatible, modifyCompatibleMethods inherited from interface Mutate2D.Receiver
accept, isAcceptableMethods inherited from interface Structure2D
count, countColumns, countRows, firstInColumn, firstInRow, getColDim, getMaxDim, getMinDim, getRowDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, sizeMethods inherited from interface TransformableRegion
exchangeColumns, exchangeRows, modifyAny, synchronised
-
Field Details
-
myMultiplier
-
-
Constructor Details
-
Subregion2D
Subregion2D(TransformableRegion.FillByMultiplying<N> multiplier, long rows, long columns)
-
-
Method Details
-
findMultiplier
static <N extends Comparable<N>> TransformableRegion.FillByMultiplying<N> findMultiplier(Class<?> type, int nbRows, int nbCols) -
findMultiplier
static <N extends Comparable<N>> TransformableRegion.FillByMultiplying<N> findMultiplier(MathType type, int nbRows, int nbCols) -
fillByMultiplying
- Specified by:
fillByMultiplyingin interfaceTransformableRegion<N extends Comparable<N>>
-
fillMatching
Description copied from interface:Mutate1D.FillableWill fill the elements of [this] with the corresponding input values, and in the process (if necessary) convert the elements to the correct type:this(i) = values(i)- Specified by:
fillMatchingin interfaceMutate1D.Fillable<N extends Comparable<N>>
-
regionByColumns
- Specified by:
regionByColumnsin interfaceTransformableRegion<N extends Comparable<N>>- Returns:
- A consumer (sub)region
-
regionByLimits
- Specified by:
regionByLimitsin interfaceTransformableRegion<N extends Comparable<N>>- Returns:
- A consumer (sub)region
-
regionByOffsets
- Specified by:
regionByOffsetsin interfaceTransformableRegion<N extends Comparable<N>>- Returns:
- A consumer (sub)region
-
regionByRows
- Specified by:
regionByRowsin interfaceTransformableRegion<N extends Comparable<N>>- Returns:
- A consumer (sub)region
-
regionByTransposing
- Specified by:
regionByTransposingin interfaceTransformableRegion<N extends Comparable<N>>- Returns:
- A transposed consumer region
-
toString
-