-
- 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 interfaceAccessAnyD.Aggregatable<N extends java.lang.Comparable<N>>static interfaceAccessAnyD.Collectable<N extends java.lang.Comparable<N>,R extends MutateAnyD>static classAccessAnyD.ElementView<N extends java.lang.Comparable<N>>static classAccessAnyD.MatrixView<N extends java.lang.Comparable<N>>static classAccessAnyD.SelectionView<N extends java.lang.Comparable<N>>static interfaceAccessAnyD.Sliceable<N extends java.lang.Comparable<N>>static classAccessAnyD.VectorView<N extends java.lang.Comparable<N>>static interfaceAccessAnyD.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 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 java.lang.StringtoString(AccessAnyD<?> array)default AccessAnyD.VectorView<N>vectors()-
Methods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, asList, axpy, byteValue, byteValue, dot, doubleValue, doubleValue, floatValue, floatValue, get, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toList, 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:Access1DReturns 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()
-
-