Package org.ojalgo.structure
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 interface
AccessAnyD.Aggregatable<N extends Comparable<N>>
static interface
AccessAnyD.Collectable<N extends Comparable<N>,
R extends MutateAnyD> static final class
AccessAnyD.ElementView<N extends Comparable<N>>
static final class
AccessAnyD.MatrixView<N extends Comparable<N>>
static final class
AccessAnyD.SelectionView<N extends Comparable<N>>
static interface
AccessAnyD.Sliceable<N extends Comparable<N>>
static final class
AccessAnyD.VectorView<N extends Comparable<N>>
static interface
AccessAnyD.Visitable<N extends Comparable<N>>
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
Modifier and TypeMethodDescriptiondefault <NN extends Comparable<NN>,
R extends MutateAnyD.Receiver<NN>>
AccessAnyD.Collectable<NN, R> static AccessAnyD
<Double> asPrimitiveAnyD
(AccessAnyD<?> access) Deprecated.default byte
byteValue
(int... ref) default byte
byteValue
(long... ref) default double
doubleValue
(int... ref) default double
doubleValue
(long... ref) default ElementViewAnyD
<N, ?> elements()
Returns an Iterable of ElementView1D.static boolean
equals
(AccessAnyD<?> accessA, AccessAnyD<?> accessB, NumberContext accuracy) default float
floatValue
(int... ref) default float
floatValue
(long... ref) default N
get
(int... ref) default N
get
(long... ref) default int
intValue
(int... ref) default int
intValue
(long... ref) default long
longValue
(int... ref) default long
longValue
(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 short
shortValue
(int... ref) default short
shortValue
(long... ref) static String
toString
(AccessAnyD<?> array) default AccessAnyD.VectorView
<N> vectors()
Methods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, axpy, byteValue, byteValue, dot, doubleValue, doubleValue, floatValue, floatValue, get, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toRawCopy1D
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
-
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
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 interfaceAccess1D<N extends Comparable<N>>
-
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