public class SharedShortVector extends SharedAbstractVector<SharedShortVector>
cube
Constructor and Description |
---|
SharedShortVector(int cols)
Constructs a 1-by-cols shared short vector.
|
Modifier and Type | Method and Description |
---|---|
short[] |
array()
Returns the short array that backs this vector.
|
short |
get(int j)
Absolute get method
Reads the short at the given index.
|
void |
get(short[] array)
Absolute bulk get method.
|
void |
get(short[] array,
int y)
Absolute bulk get method.
|
ShortBuffer[] |
map()
Maps the shared memory cube of this shared memory vector.
|
void |
put(int j,
short value)
Absolute put method.
|
void |
put(short[] array)
Absolute bulk put method.
|
void |
put(short[] array,
int y)
Absolute bulk put method.
|
int |
unit()
Returns the unit size (in bytes) of this shared vector.
|
alloc, cube, free
numCols, numColsWithAttributes, numMetaCols, numPaddingCols, setRowAttributes
public SharedShortVector(int cols)
cols
- Number of colums.public ShortBuffer[] map()
map
in class SharedAbstractVector<SharedShortVector>
public short[] array()
public short get(int j)
j
- The column index from which the short will be read.public void get(short[] array, int y)
array
- The short array at the given index.y
- The column index from which the short array will be read.public void get(short[] array)
array
- The short array.public void put(int j, short value)
j
- The column index at which the short will be written.value
- The short to be written.public void put(short[] array, int y)
array
- The short array to be written.y
- The column index at which the short array will be written.public void put(short[] array)
array
- The short array to be written.public int unit()
Copyright © 2018–2020 InAccel. All rights reserved.