Package org.ojalgo.matrix.store
Class Subregion2D<N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.matrix.store.Subregion2D<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
- Direct Known Subclasses:
Subregion2D.ColumnsRegion
,Subregion2D.LimitRegion
,Subregion2D.OffsetRegion
,Subregion2D.RowsRegion
,Subregion2D.SynchronizedRegion
,Subregion2D.TransposedRegion
,Subregion2D.WrapperRegion
abstract class Subregion2D<N extends java.lang.Comparable<N>> extends java.lang.Object implements TransformableRegion<N>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Subregion2D.ColumnsRegion<N extends java.lang.Comparable<N>>
(package private) static class
Subregion2D.LimitRegion<N extends java.lang.Comparable<N>>
(package private) static class
Subregion2D.OffsetRegion<N extends java.lang.Comparable<N>>
(package private) static class
Subregion2D.RowsRegion<N extends java.lang.Comparable<N>>
(package private) static class
Subregion2D.SynchronizedRegion<N extends java.lang.Comparable<N>>
(package private) static class
Subregion2D.TransposedRegion<N extends java.lang.Comparable<N>>
(package private) static class
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.FillByMultiplying<N>
myMultiplier
-
Constructor Summary
Constructors Modifier Constructor Description private
Subregion2D()
(package private)
Subregion2D(TransformableRegion.FillByMultiplying<N> multiplier, long rows, long columns)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fillByMultiplying(Access1D<N> left, Access1D<N> right)
void
fillMatching(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:(package private) static <N extends java.lang.Comparable<N>>
TransformableRegion.FillByMultiplying<N>findMultiplier(java.lang.Class<?> tmpType, int rowsCount, int columnsCount)
TransformableRegion<N>
regionByColumns(int... columns)
TransformableRegion<N>
regionByLimits(int rowLimit, int columnLimit)
TransformableRegion<N>
regionByOffsets(int rowOffset, int columnOffset)
TransformableRegion<N>
regionByRows(int... rows)
TransformableRegion<N>
regionByTransposing()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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, 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, 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, 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, fillRow, fillRow, fillRow
-
Methods inherited from interface org.ojalgo.structure.Mutate2D.Modifiable
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, 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, countColumns, countRows, firstInColumn, firstInRow, getColDim, getMaxDim, getMinDim, getRowDim, isEmpty, isFat, isScalar, isSquare, isTall, isVector, limitOfColumn, limitOfRow, size
-
Methods inherited from interface org.ojalgo.matrix.store.TransformableRegion
exchangeColumns, exchangeRows, modifyAny, synchronised
-
-
-
-
Field Detail
-
myMultiplier
private final TransformableRegion.FillByMultiplying<N extends java.lang.Comparable<N>> myMultiplier
-
-
Constructor Detail
-
Subregion2D
private Subregion2D()
-
Subregion2D
Subregion2D(TransformableRegion.FillByMultiplying<N> multiplier, long rows, long columns)
-
-
Method Detail
-
findMultiplier
static <N extends java.lang.Comparable<N>> TransformableRegion.FillByMultiplying<N> findMultiplier(java.lang.Class<?> tmpType, int rowsCount, int columnsCount)
-
fillByMultiplying
public final void fillByMultiplying(Access1D<N> left, Access1D<N> right)
- Specified by:
fillByMultiplying
in interfaceTransformableRegion<N extends java.lang.Comparable<N>>
-
fillMatching
public void fillMatching(Access1D<?> values)
Description copied from interface:Mutate1D.Fillable
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)
- Specified by:
fillMatching
in interfaceMutate1D.Fillable<N extends java.lang.Comparable<N>>
-
regionByColumns
public final TransformableRegion<N> regionByColumns(int... columns)
- Specified by:
regionByColumns
in interfaceTransformableRegion<N extends java.lang.Comparable<N>>
- Returns:
- A consumer (sub)region
-
regionByLimits
public final TransformableRegion<N> regionByLimits(int rowLimit, int columnLimit)
- Specified by:
regionByLimits
in interfaceTransformableRegion<N extends java.lang.Comparable<N>>
- Returns:
- A consumer (sub)region
-
regionByOffsets
public final TransformableRegion<N> regionByOffsets(int rowOffset, int columnOffset)
- Specified by:
regionByOffsets
in interfaceTransformableRegion<N extends java.lang.Comparable<N>>
- Returns:
- A consumer (sub)region
-
regionByRows
public final TransformableRegion<N> regionByRows(int... rows)
- Specified by:
regionByRows
in interfaceTransformableRegion<N extends java.lang.Comparable<N>>
- Returns:
- A consumer (sub)region
-
regionByTransposing
public TransformableRegion<N> regionByTransposing()
- Specified by:
regionByTransposing
in interfaceTransformableRegion<N extends java.lang.Comparable<N>>
- Returns:
- A transposed consumer region
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-