Package org.ojalgo.structure
Interface AccessAnyD<N extends java.lang.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 java.lang.Comparable<N>> extends StructureAnyD, Access1D<N>
N-dimensional accessor methods- See Also:
Access1D
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AccessAnyD.Aggregatable<N extends java.lang.Comparable<N>>
static interface
AccessAnyD.Collectable<N extends java.lang.Comparable<N>,R extends MutateAnyD>
static class
AccessAnyD.ElementView<N extends java.lang.Comparable<N>>
static class
AccessAnyD.MatrixView<N extends java.lang.Comparable<N>>
static class
AccessAnyD.SelectionView<N extends java.lang.Comparable<N>>
static interface
AccessAnyD.Sliceable<N extends java.lang.Comparable<N>>
static class
AccessAnyD.VectorView<N extends java.lang.Comparable<N>>
static interface
AccessAnyD.Visitable<N extends java.lang.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
All Methods Static Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default <NN extends java.lang.Comparable<NN>,R extends MutateAnyD.Receiver<NN>>
AccessAnyD.Collectable<NN,R>asCollectableAnyD()
static AccessAnyD<java.lang.Double>
asPrimitiveAnyD(AccessAnyD<?> access)
Deprecated.v54 UsePrimitiveAnyD.wrap(StructureAnyD)
insteaddefault 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 java.lang.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 Detail
-
asPrimitiveAnyD
@Deprecated static AccessAnyD<java.lang.Double> asPrimitiveAnyD(AccessAnyD<?> access)
Deprecated.v54 UsePrimitiveAnyD.wrap(StructureAnyD)
instead
-
equals
static boolean equals(AccessAnyD<?> accessA, AccessAnyD<?> accessB, NumberContext accuracy)
-
toString
static java.lang.String toString(AccessAnyD<?> array)
-
asCollectableAnyD
default <NN extends java.lang.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).
-
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 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
default AccessAnyD.VectorView<N> vectors()
-
-