Package org.ojalgo.structure
Interface AccessAnyD.Sliceable<N extends Comparable<N>>
- All Superinterfaces:
Access1D.Sliceable<N>
,Structure1D
,StructureAnyD
- All Known Implementing Classes:
ArrayAnyD
- Enclosing interface:
AccessAnyD<N extends Comparable<N>>
public static interface AccessAnyD.Sliceable<N extends Comparable<N>>
extends StructureAnyD, Access1D.Sliceable<N>
-
Nested Class Summary
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.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
Methods inherited from interface org.ojalgo.structure.Access1D.Sliceable
sliceRange
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
-
sliceSet
If the intial reference is {0, 2, 3} and the slice dimension is 1 then the sliced 1D view will map to the following elements in the AnyD data structure:0 => {0, 2, 3} 1 => {0, 3, 3} 2 => {0, 4, 3} 3 => {0, 5, 3} 4 => {0, 6, 3} 5 => {0, 7, 3} 6 => ...
Meaning the row index is always '0', and the plane/matrix/area index is always '3', but the column index starts at '2' and then increments.If you have a data structure defined as 3 x 3 x n (that is n 3x3 matrices) and you want to access the second element of the first column of each of the matrices, then the intial refrence is {1, 0, 0} and the slice dimension is 2.
- Parameters:
initial
- Indices pointing to what will be the first element of the slicedAccess1D
dimension
- Which indices that make out an element reference should be incremented- Returns:
- A sliced 1D view of the underlying AnyD data structure
-