Package de.gsi.dataset.spi.utils
Class MultiArrayLong.MultiArray2DLong
- java.lang.Object
-
- de.gsi.dataset.spi.utils.MultiArray<long[]>
-
- de.gsi.dataset.spi.utils.MultiArrayLong
-
- de.gsi.dataset.spi.utils.MultiArrayLong.MultiArray2DLong
-
- Enclosing class:
- MultiArrayLong
public static class MultiArrayLong.MultiArray2DLong extends MultiArrayLong
Specialisation for the 2D case to allow for easier and more efficient usage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.gsi.dataset.spi.utils.MultiArrayLong
MultiArrayLong.MultiArray1DLong, MultiArrayLong.MultiArray2DLong
-
-
Field Summary
-
Fields inherited from class de.gsi.dataset.spi.utils.MultiArray
dimensions, elements, offset, strides
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMultiArray2DLong(long[] elements, int[] dimensions, int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longget(int row, int column)long[]getRow(int row)voidset(int row, int column, long value)-
Methods inherited from class de.gsi.dataset.spi.utils.MultiArrayLong
allocate, equals, get, getStrided, hashCode, set, setStrided, wrap, wrap, wrap, wrap
-
Methods inherited from class de.gsi.dataset.spi.utils.MultiArray
elements, getDimensions, getElementsCount, getIndex, getIndices, getOffset, toString, wrap, wrap, wrap, wrap
-
-
-
-
Method Detail
-
get
public long get(int row, int column)- Parameters:
row- rowIndexcolumn- columnIndex- Returns:
- value at M(rowIndex,columnIndex)
-
set
public void set(int row, int column, long value)- Parameters:
row- rowIndexcolumn- columnIndexvalue- new value: M(rowIndex,columnIndex) == value
-
getRow
public long[] getRow(int row)
-
-