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