Package org.ojalgo.structure
Class Access1D.SelectionView<N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.structure.Access1D.SelectionView<N>
-
- All Implemented Interfaces:
Access1D<N>
,Access1D.Collectable<N,Mutate1D>
,Structure1D
public static final class Access1D.SelectionView<N extends java.lang.Comparable<N>> extends java.lang.Object implements Access1D<N>, Access1D.Collectable<N,Mutate1D>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends java.lang.Comparable<N>>, Access1D.Collectable<N extends java.lang.Comparable<N>,R extends Mutate1D>, Access1D.ElementView<N extends java.lang.Comparable<N>>, Access1D.SelectionView<N extends java.lang.Comparable<N>>, Access1D.Sliceable<N extends java.lang.Comparable<N>>, Access1D.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
-
-
Field Summary
Fields Modifier and Type Field Description private Access1D<N>
myFullData
private long[]
mySelection
-
Constructor Summary
Constructors Constructor Description SelectionView(Access1D<N> fullData, long[] selection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
doubleValue(int index)
N
get(long index)
int
size()
The total number of elements in this structure.void
supplyTo(Mutate1D receiver)
java.lang.String
toString()
-
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, doubleValue, elements, floatValue, floatValue, intValue, intValue, longValue, longValue, nonzeros, select, shortValue, shortValue, supplyTo, toRawCopy1D
-
Methods inherited from interface org.ojalgo.structure.Access1D.Collectable
collect
-
Methods inherited from interface org.ojalgo.structure.Structure1D
count
-
-
-
-
Method Detail
-
doubleValue
public double doubleValue(int index)
- Specified by:
doubleValue
in interfaceAccess1D<N extends java.lang.Comparable<N>>
-
get
public N get(long index)
-
size
public int size()
Description copied from interface:Structure1D
The total number of elements in this structure.- Specified by:
size
in interfaceStructure1D
-
supplyTo
public void supplyTo(Mutate1D receiver)
- Specified by:
supplyTo
in interfaceAccess1D.Collectable<N extends java.lang.Comparable<N>,Mutate1D>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-