Package org.ojalgo.structure
Class AccessAnyD.SelectionView<N extends java.lang.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 java.lang.Comparable<N>>
public static final class AccessAnyD.SelectionView<N extends java.lang.Comparable<N>> extends java.lang.Object implements AccessAnyD<N>, AccessAnyD.Collectable<N,MutateAnyD>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.AccessAnyD
AccessAnyD.Aggregatable<N extends java.lang.Comparable<N>>, AccessAnyD.Collectable<N extends java.lang.Comparable<N>,R extends MutateAnyD>, AccessAnyD.ElementView<N extends java.lang.Comparable<N>>, AccessAnyD.MatrixView<N extends java.lang.Comparable<N>>, AccessAnyD.SelectionView<N extends java.lang.Comparable<N>>, AccessAnyD.Sliceable<N extends java.lang.Comparable<N>>, AccessAnyD.VectorView<N extends java.lang.Comparable<N>>, 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
-
-
Field Summary
Fields Modifier and Type Field Description private AccessAnyD<N>
myFullData
private long[][]
mySelections
private long[]
myShape
-
Constructor Summary
Constructors Constructor Description SelectionView(AccessAnyD<N> fullData, long[][] selections)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
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)
double
doubleValue(long... ref)
N
get(long index)
N
get(long... ref)
long[]
shape()
int
size()
The total number of elements in this structure.int
size(int dimension)
void
supplyTo(MutateAnyD receiver)
java.lang.String
toString()
private long[]
translate(long[] filteredRef)
private void
translate(long[] filteredRef, long[] fullRef)
-
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, elements, floatValue, floatValue, get, intValue, intValue, longValue, longValue, matrices, select, shortValue, shortValue, vectors
-
Methods inherited from interface org.ojalgo.structure.AccessAnyD.Collectable
collect
-
Methods inherited from interface org.ojalgo.structure.StructureAnyD
loop, loop, loopAllReferences, loopReferences, rank
-
-
-
-
Field Detail
-
myFullData
private final AccessAnyD<N extends java.lang.Comparable<N>> myFullData
-
mySelections
private final long[][] mySelections
-
myShape
private final long[] myShape
-
-
Constructor Detail
-
SelectionView
SelectionView(AccessAnyD<N> fullData, long[][] selections)
-
-
Method Detail
-
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.
- Specified by:
count
in interfaceStructure1D
-
count
public long count(int dimension)
Description copied from interface:StructureAnyD
count() == count(0) * count(1) * count(2) * count(3) * ...- Specified by:
count
in interfaceStructureAnyD
-
doubleValue
public double doubleValue(int index)
- Specified by:
doubleValue
in interfaceAccess1D<N extends java.lang.Comparable<N>>
-
doubleValue
public double doubleValue(long index)
- Specified by:
doubleValue
in interfaceAccess1D<N extends java.lang.Comparable<N>>
-
doubleValue
public double doubleValue(long... ref)
- Specified by:
doubleValue
in interfaceAccessAnyD<N extends java.lang.Comparable<N>>
-
get
public N get(long... ref)
- Specified by:
get
in interfaceAccessAnyD<N extends java.lang.Comparable<N>>
-
get
public N get(long index)
-
shape
public long[] shape()
- Specified by:
shape
in interfaceStructureAnyD
-
size
public int size()
Description copied from interface:Structure1D
The total number of elements in this structure.- Specified by:
size
in interfaceStructure1D
-
size
public int size(int dimension)
- Specified by:
size
in interfaceStructureAnyD
-
supplyTo
public void supplyTo(MutateAnyD receiver)
- Specified by:
supplyTo
in interfaceAccessAnyD.Collectable<N extends java.lang.Comparable<N>,MutateAnyD>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
translate
private long[] translate(long[] filteredRef)
-
translate
private void translate(long[] filteredRef, long[] fullRef)
-
-