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