Package de.gsi.dataset.spi.utils
Class MultiArrayShort.MultiArray2DShort
- java.lang.Object
-
- de.gsi.dataset.spi.utils.MultiArray<short[]>
-
- de.gsi.dataset.spi.utils.MultiArrayShort
-
- de.gsi.dataset.spi.utils.MultiArrayShort.MultiArray2DShort
-
- Enclosing class:
- MultiArrayShort
public static class MultiArrayShort.MultiArray2DShort extends MultiArrayShort
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.MultiArrayShort
MultiArrayShort.MultiArray1DShort, MultiArrayShort.MultiArray2DShort
-
-
Field Summary
-
Fields inherited from class de.gsi.dataset.spi.utils.MultiArray
dimensions, elements, offset, strides
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMultiArray2DShort(short[] elements, int[] dimensions, int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortget(int row, int column)short[]getRow(int row)voidset(int row, int column, short value)-
Methods inherited from class de.gsi.dataset.spi.utils.MultiArrayShort
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 short get(int row, int column)- Parameters:
row- rowIndexcolumn- columnIndex- Returns:
- value at M(rowIndex,columnIndex)
-
set
public void set(int row, int column, short value)- Parameters:
row- rowIndexcolumn- columnIndexvalue- new value: M(rowIndex,columnIndex) == value
-
getRow
public short[] getRow(int row)
-
-