Class PrimitiveAnyD.Wrapper
java.lang.Object
org.ojalgo.structure.PrimitiveAnyD
org.ojalgo.structure.PrimitiveAnyD.Wrapper
- All Implemented Interfaces:
Access1D<Double>, AccessAnyD<Double>, Mutate1D, MutateAnyD, Structure1D, StructureAnyD
- Enclosing class:
PrimitiveAnyD
-
Nested Class Summary
Nested classes/interfaces inherited from class PrimitiveAnyD
PrimitiveAnyD.Simple, PrimitiveAnyD.WrapperNested classes/interfaces inherited from interface AccessAnyD
AccessAnyD.Aggregatable<N>, AccessAnyD.Collectable<N,R>, AccessAnyD.ElementView<N>, AccessAnyD.MatrixView<N>, AccessAnyD.SelectionView<N>, AccessAnyD.Sliceable<N>, AccessAnyD.VectorView<N>, AccessAnyD.Visitable<N> Nested classes/interfaces inherited from interface Mutate1D
Mutate1D.SortableNested classes/interfaces inherited from interface MutateAnyD
MutateAnyD.Fillable<N>, MutateAnyD.Mixable<N>, MutateAnyD.Modifiable<N>, MutateAnyD.ModifiableReceiver<N>, MutateAnyD.Receiver<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 -
Field Summary
FieldsFields inherited from class PrimitiveAnyD
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcount()The total number of elements in this structure.longcount(int dimension) count() == count(0) * count(1) * count(2) * count(3) * ...doubledoubleValue(int index) doubledoubleValue(long index) intrank()voidset(int index, double value) voidset(long index, double value) long[]shape()intsize()The total number of elements in this structure.intsize(int dimension) Methods inherited from class PrimitiveAnyD
get, get, newInstance, set, set, toString, wrapMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Access1D
asCollectable1D, asKeyed1D, asList, axpy, byteValue, byteValue, dot, floatValue, floatValue, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toList, toRawCopy1DMethods inherited from interface AccessAnyD
asCollectableAnyD, byteValue, byteValue, doubleValue, doubleValue, elements, floatValue, floatValue, get, intValue, intValue, longValue, longValue, matrices, select, shortValue, shortValue, vectorsMethods inherited from interface MutateAnyD
set, set, set, set, set, set, set, set, set, set, set, set, setMethods inherited from interface StructureAnyD
loop, loop, loopAllReferences, loopReferences
-
Field Details
-
myDelegate
-
-
Constructor Details
-
Wrapper
Wrapper(StructureAnyD delegate)
-
-
Method Details
-
count
public long count()Description copied from interface:Structure1DThe total number of elements in this structure.You only need to implement this method if the structure can contain more than Integer.MAX_VALUE elements.
-
count
public long count(int dimension) Description copied from interface:StructureAnyDcount() == count(0) * count(1) * count(2) * count(3) * ... -
doubleValue
public double doubleValue(int index) -
doubleValue
public double doubleValue(long index) -
rank
public int rank()- Returns:
- The number of dimensions (the number of indices used to reference one element)
-
set
public void set(int index, double value) -
set
public void set(long index, double value) -
shape
public long[] shape() -
size
public int size()Description copied from interface:Structure1DThe total number of elements in this structure. -
size
public int size(int dimension)
-