Class AccessAnyD.SelectionView<N extends Comparable<N>>
java.lang.Object
org.ojalgo.structure.AccessAnyD.SelectionView<N>
- All Implemented Interfaces:
Access1D<N>, AccessAnyD<N>, AccessAnyD.Collectable<N, MutateAnyD>, Structure1D, StructureAnyD
- Enclosing interface:
AccessAnyD<N extends Comparable<N>>
public static final class AccessAnyD.SelectionView<N extends Comparable<N>>
extends Object
implements AccessAnyD<N>, AccessAnyD.Collectable<N, MutateAnyD>
- Author:
- apete
-
Nested Class Summary
Nested 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 Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S,B>, Structure1D.LongIndex, Structure1D.LoopCallback, Structure1D.Sparse 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 -
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) doubledoubleValue(long... ref) get(long index) get(long... ref) long[]shape()intsize()The total number of elements in this structure.intsize(int dimension) voidsupplyTo(MutateAnyD receiver) toString()Methods 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, elements, floatValue, floatValue, get, intValue, intValue, longValue, longValue, matrices, select, shortValue, shortValue, vectorsMethods inherited from interface AccessAnyD.Collectable
collectMethods inherited from interface StructureAnyD
loop, loop, loopAllReferences, loopReferences, rank
-
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.
- Specified by:
countin interfaceStructure1D
-
count
public long count(int dimension) Description copied from interface:StructureAnyDcount() == count(0) * count(1) * count(2) * count(3) * ...- Specified by:
countin interfaceStructureAnyD
-
doubleValue
public double doubleValue(int index) - Specified by:
doubleValuein interfaceAccess1D<N extends Comparable<N>>
-
doubleValue
public double doubleValue(long index) - Specified by:
doubleValuein interfaceAccess1D<N extends Comparable<N>>
-
doubleValue
public double doubleValue(long... ref) - Specified by:
doubleValuein interfaceAccessAnyD<N extends Comparable<N>>
-
get
- Specified by:
getin interfaceAccessAnyD<N extends Comparable<N>>
-
get
-
shape
public long[] shape()- Specified by:
shapein interfaceStructureAnyD
-
size
public int size()Description copied from interface:Structure1DThe total number of elements in this structure.- Specified by:
sizein interfaceStructure1D
-
size
public int size(int dimension) - Specified by:
sizein interfaceStructureAnyD
-
supplyTo
- Specified by:
supplyToin interfaceAccessAnyD.Collectable<N extends Comparable<N>, MutateAnyD>
-
toString
-