Interface AccessAnyD<N extends Comparable<N>>

All Superinterfaces:
Access1D<N>, Structure1D, StructureAnyD
All Known Subinterfaces:
MutateAnyD.ModifiableReceiver<N>
All Known Implementing Classes:
AccessAnyD.SelectionView, AnyTensor, ArrayAnyD, PrimitiveAnyD, PrimitiveAnyD.Simple, PrimitiveAnyD.Wrapper

public interface AccessAnyD<N extends Comparable<N>> extends StructureAnyD, Access1D<N>
N-dimensional accessor methods
See Also:
  • Method Details

    • asPrimitiveAnyD

      @Deprecated static AccessAnyD<Double> asPrimitiveAnyD(AccessAnyD<?> access)
      Deprecated.
    • equals

      static boolean equals(AccessAnyD<?> accessA, AccessAnyD<?> accessB, NumberContext accuracy)
    • toString

      static String toString(AccessAnyD<?> array)
    • asCollectableAnyD

      default <NN extends Comparable<NN>, R extends MutateAnyD.Receiver<NN>> AccessAnyD.Collectable<NN,R> asCollectableAnyD()
    • byteValue

      default byte byteValue(int... ref)
    • byteValue

      default byte byteValue(long... ref)
    • doubleValue

      default double doubleValue(int... ref)
    • doubleValue

      default double doubleValue(long... ref)
    • elements

      default ElementViewAnyD<N,?> elements()
      Description copied from interface: Access1D
      Returns an Iterable of ElementView1D. It allows to iterate over the instance's element "positions" without actually extracting the elements (unless you explicitly do so).
      Specified by:
      elements in interface Access1D<N extends Comparable<N>>
    • floatValue

      default float floatValue(int... ref)
    • floatValue

      default float floatValue(long... ref)
    • get

      default N get(int... ref)
    • get

      default N get(long... ref)
    • intValue

      default int intValue(int... ref)
    • intValue

      default int intValue(long... ref)
    • longValue

      default long longValue(int... ref)
    • longValue

      default long longValue(long... ref)
    • matrices

      default AccessAnyD.MatrixView<N> matrices()
    • select

      default AccessAnyD<N> select(long[]... selections)
      Creates a view of the underlying data structure of only the selected elements. There should be one long[] of indices per dimension of the AccessAnyD, but any such array that is null, empty or missing will be replaced by a "full selection" in that dimension. For instance if you have 3-dimensional array and want to select only the second and third columns of any/all matrices: select(null, {1,2}) You have to input null for the row indices (otherwise there is no way of knowing that {1,2} refers to column indices) but may leave out specification of matrix indices.
    • shortValue

      default short shortValue(int... ref)
    • shortValue

      default short shortValue(long... ref)
    • vectors

      default AccessAnyD.VectorView<N> vectors()