Package org.ojalgo.structure
Interface StructureAnyD.ReducibleTo2D<R extends Structure2D>
- All Superinterfaces:
Structure1D
,StructureAnyD
- All Known Implementing Classes:
ArrayAnyD
- Enclosing interface:
StructureAnyD
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.LongIndex, Structure1D.LoopCallback
Nested classes/interfaces inherited from interface org.ojalgo.structure.StructureAnyD
StructureAnyD.IntReference, StructureAnyD.Logical<S extends StructureAnyD,
B extends StructureAnyD.Logical<S, B>>, StructureAnyD.LongReference, StructureAnyD.ReducibleTo1D<R extends Structure1D>, StructureAnyD.ReducibleTo2D<R extends Structure2D>, StructureAnyD.ReferenceCallback, StructureAnyD.ReferenceMapper, StructureAnyD.Reshapable -
Method Summary
Modifier and TypeMethodDescriptionreduce
(int rowDimension, int columnDimension, Aggregator aggregator) Methods inherited from interface org.ojalgo.structure.Structure1D
count, size
Methods inherited from interface org.ojalgo.structure.StructureAnyD
count, loop, loop, loopAllReferences, loopReferences, rank, shape, size
-
Method Details
-
reduce
- Parameters:
rowDimension
- Which of the AnyD-dimensions should be mapped to the rows of the resulting 2D structure.columnDimension
- Which of the AnyD-dimensions should be mapped to the columns of the resulting 2D structure.aggregator
- How to aggregate the values of the reduction- Returns:
- A 2D data structure with aggregated values
-