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>
  • Method Details

    • sliceSet

      Access1D<N> sliceSet(long[] initial, int dimension)
      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 sliced Access1D
      dimension - Which indices that make out an element reference should be incremented
      Returns:
      A sliced 1D view of the underlying AnyD data structure