Package org.ojalgo.structure
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 org.ojalgo.structure.PrimitiveAnyD
PrimitiveAnyD.Simple, PrimitiveAnyD.Wrapper
Nested classes/interfaces inherited from interface org.ojalgo.structure.AccessAnyD
AccessAnyD.Aggregatable<N extends Comparable<N>>, AccessAnyD.Collectable<N extends Comparable<N>,
R extends MutateAnyD>, AccessAnyD.ElementView<N extends Comparable<N>>, AccessAnyD.MatrixView<N extends Comparable<N>>, AccessAnyD.SelectionView<N extends Comparable<N>>, AccessAnyD.Sliceable<N extends Comparable<N>>, AccessAnyD.VectorView<N extends Comparable<N>>, AccessAnyD.Visitable<N extends Comparable<N>> Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate1D
Mutate1D.Sortable
Nested classes/interfaces inherited from interface org.ojalgo.structure.MutateAnyD
MutateAnyD.Fillable<N extends Comparable<N>>, MutateAnyD.Mixable<N extends Comparable<N>>, MutateAnyD.Modifiable<N extends Comparable<N>>, MutateAnyD.ModifiableReceiver<N extends Comparable<N>>, MutateAnyD.Receiver<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 -
Field Summary
FieldsFields inherited from class org.ojalgo.structure.PrimitiveAnyD
EMPTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
The total number of elements in this structure.long
count
(int dimension) count() == count(0) * count(1) * count(2) * count(3) * ...double
doubleValue
(int index) double
doubleValue
(long index) int
rank()
void
set
(int index, double value) void
set
(long index, double value) long[]
shape()
int
size()
The total number of elements in this structure.int
size
(int dimension) Methods inherited from class org.ojalgo.structure.PrimitiveAnyD
get, get, newInstance, set, set, toString, wrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, axpy, byteValue, byteValue, dot, floatValue, floatValue, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toRawCopy1D
Methods inherited from interface org.ojalgo.structure.AccessAnyD
asCollectableAnyD, byteValue, byteValue, doubleValue, doubleValue, elements, floatValue, floatValue, get, intValue, intValue, longValue, longValue, matrices, select, shortValue, shortValue, vectors
Methods inherited from interface org.ojalgo.structure.Mutate1D
reset, set, set, set, set, set, set, set, set, set, set
Methods inherited from interface org.ojalgo.structure.MutateAnyD
set, set, set, set, set, set, set, set, set, set, set, set, set
Methods inherited from interface org.ojalgo.structure.StructureAnyD
loop, loop, loopAllReferences, loopReferences
-
Field Details
-
myDelegate
-
-
Constructor Details
-
Wrapper
Wrapper(StructureAnyD delegate)
-
-
Method Details
-
count
public long count()Description copied from interface:Structure1D
The 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:StructureAnyD
count() == 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:Structure1D
The total number of elements in this structure. -
size
public int size(int dimension)
-