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
N-dimensional accessor methods
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAccessAnyD.Aggregatable<N extends Comparable<N>>static interfaceAccessAnyD.Collectable<N extends Comparable<N>, R extends MutateAnyD>static final classAccessAnyD.ElementView<N extends Comparable<N>>static final classAccessAnyD.MatrixView<N extends Comparable<N>>static final classAccessAnyD.SelectionView<N extends Comparable<N>>static interfaceAccessAnyD.Sliceable<N extends Comparable<N>>static final classAccessAnyD.VectorView<N extends Comparable<N>>static interfaceAccessAnyD.Visitable<N extends Comparable<N>>Nested classes/interfaces inherited from interface Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S,B>, Structure1D.LongIndex, Structure1D.LoopCallback Nested classes/interfaces inherited from interface StructureAnyD
StructureAnyD.IntReference, StructureAnyD.Logical<S,B>, StructureAnyD.LongReference, StructureAnyD.ReducibleTo1D<R>, StructureAnyD.ReducibleTo2D<R>, StructureAnyD.ReferenceCallback, StructureAnyD.ReferenceMapper, StructureAnyD.Reshapable -
Method Summary
Modifier and TypeMethodDescriptiondefault <NN extends Comparable<NN>, R extends MutateAnyD.Receiver<NN>>
AccessAnyD.Collectable<NN, R> static AccessAnyD<Double> asPrimitiveAnyD(AccessAnyD<?> access) Deprecated.default bytebyteValue(int... ref) default bytebyteValue(long... ref) default doubledoubleValue(int... ref) default doubledoubleValue(long... ref) default ElementViewAnyD<N, ?> elements()Returns an Iterable of ElementView1D.static booleanequals(AccessAnyD<?> accessA, AccessAnyD<?> accessB, NumberContext accuracy) default floatfloatValue(int... ref) default floatfloatValue(long... ref) default Nget(int... ref) default Nget(long... ref) default intintValue(int... ref) default intintValue(long... ref) default longlongValue(int... ref) default longlongValue(long... ref) default AccessAnyD.MatrixView<N> matrices()default AccessAnyD<N> select(long[]... selections) Creates a view of the underlying data structure of only the selected elements.default shortshortValue(int... ref) default shortshortValue(long... ref) static StringtoString(AccessAnyD<?> array) default AccessAnyD.VectorView<N> vectors()Methods inherited from interface Access1D
asCollectable1D, asKeyed1D, asList, axpy, byteValue, byteValue, dot, doubleValue, doubleValue, floatValue, floatValue, get, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toList, toRawCopy1DMethods inherited from interface Structure1D
count, sizeMethods inherited from interface StructureAnyD
count, loop, loop, loopAllReferences, loopReferences, rank, shape, size
-
Method Details
-
asPrimitiveAnyD
Deprecated.v54 UsePrimitiveAnyD.wrap(StructureAnyD)instead -
equals
-
toString
-
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
-
floatValue
default float floatValue(int... ref) -
floatValue
default float floatValue(long... ref) -
get
-
get
-
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
-
select
Creates a view of the underlying data structure of only the selected elements. There should be one long[] of indices per dimension of theAccessAnyD, 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
-
PrimitiveAnyD.wrap(StructureAnyD)instead