Class AccessAnyD.SelectionView<N extends Comparable<N>>

java.lang.Object
org.ojalgo.structure.AccessAnyD.SelectionView<N>
All Implemented Interfaces:
Access1D<N>, AccessAnyD<N>, AccessAnyD.Collectable<N,MutateAnyD>, Structure1D, StructureAnyD
Enclosing interface:
AccessAnyD<N extends Comparable<N>>

public static final class AccessAnyD.SelectionView<N extends Comparable<N>> extends Object implements AccessAnyD<N>, AccessAnyD.Collectable<N,MutateAnyD>
  • Field Details

    • myFullData

      private final AccessAnyD<N extends Comparable<N>> myFullData
    • mySelections

      private final long[][] mySelections
    • myShape

      private final long[] myShape
  • Constructor Details

    • SelectionView

      SelectionView(AccessAnyD<N> fullData, long[][] selections)
  • Method Details

    • count

      public long count()
      Description copied from interface: Structure1D
      The total number of elements in this structure.

      You only need to implement this method if the structure can contain more than Integer.MAX_VALUE elements.

      Specified by:
      count in interface Structure1D
    • count

      public long count(int dimension)
      Description copied from interface: StructureAnyD
      count() == count(0) * count(1) * count(2) * count(3) * ...
      Specified by:
      count in interface StructureAnyD
    • doubleValue

      public double doubleValue(int index)
      Specified by:
      doubleValue in interface Access1D<N extends Comparable<N>>
    • doubleValue

      public double doubleValue(long index)
      Specified by:
      doubleValue in interface Access1D<N extends Comparable<N>>
    • doubleValue

      public double doubleValue(long... ref)
      Specified by:
      doubleValue in interface AccessAnyD<N extends Comparable<N>>
    • get

      public N get(long... ref)
      Specified by:
      get in interface AccessAnyD<N extends Comparable<N>>
    • get

      public N get(long index)
      Specified by:
      get in interface Access1D<N extends Comparable<N>>
    • shape

      public long[] shape()
      Specified by:
      shape in interface StructureAnyD
    • size

      public int size()
      Description copied from interface: Structure1D
      The total number of elements in this structure.
      Specified by:
      size in interface Structure1D
    • size

      public int size(int dimension)
      Specified by:
      size in interface StructureAnyD
    • supplyTo

      public void supplyTo(MutateAnyD receiver)
      Specified by:
      supplyTo in interface AccessAnyD.Collectable<N extends Comparable<N>,MutateAnyD>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • translate

      private long[] translate(long[] filteredRef)
    • translate

      private void translate(long[] filteredRef, long[] fullRef)