- 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>myMapperprivate Access2D<N>myStructure
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebyteValue(R row, C col)longcount()The total number of elements in this structure.doubledoubleValue(R row, C col)floatfloatValue(R row, C col)Nget(R row, C col)intintValue(R row, C col)longlongValue(R row, C col)voidset(R row, C col, byte value)voidset(R row, C col, double value)voidset(R row, C col, float value)voidset(R row, C col, int value)voidset(R row, C col, long value)voidset(R row, C col, short value)voidset(R row, C col, java.lang.Comparable<?> value)shortshortValue(R row, C col)intsize()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: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
-
size
public int size()
Description copied from interface:Structure1DThe total number of elements in this structure.- Specified by:
sizein interfaceStructure1D
-
-