Package org.ojalgo.structure
Class Keyed2D<R,C,N extends java.lang.Comparable<N>>
- java.lang.Object
-
- org.ojalgo.structure.Keyed2D<R,C,N>
-
- All Implemented Interfaces:
Structure1D
public final class Keyed2D<R,C,N extends java.lang.Comparable<N>> extends java.lang.Object implements Structure1D
-
-
Nested Class Summary
-
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 Structure2D.RowColumnMapper<R,C>
myMapper
private Access2D<N>
myStructure
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue(R row, C col)
long
count()
The total number of elements in this structure.double
doubleValue(R row, C col)
float
floatValue(R row, C col)
N
get(R row, C col)
int
intValue(R row, C col)
long
longValue(R row, C col)
void
set(R row, C col, byte value)
void
set(R row, C col, double value)
void
set(R row, C col, float value)
void
set(R row, C col, int value)
void
set(R row, C col, long value)
void
set(R row, C col, short value)
void
set(R row, C col, java.lang.Comparable<?> value)
short
shortValue(R row, C col)
int
size()
The total number of elements in this structure.
-
-
-
Constructor Detail
-
Keyed2D
Keyed2D(Access2D<N> structure, Structure2D.RowColumnMapper<R,C> indexMapper)
-
-
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
-
size
public int size()
Description copied from interface:Structure1D
The total number of elements in this structure.- Specified by:
size
in interfaceStructure1D
-
-