public class SharedFloatMatrix extends SharedAbstractMatrix<SharedFloatMatrix>
cube
Constructor and Description |
---|
SharedFloatMatrix(int rows,
int cols)
Constructs a rows-by-cols shared float matrix.
|
Modifier and Type | Method and Description |
---|---|
float[][] |
array()
Returns the float array that backs this matrix.
|
void |
get(float[][] array)
Absolute bulk get method.
|
void |
get(float[][] array,
int x,
int y)
Absolute bulk get method.
|
float |
get(int i,
int j)
Absolute get method.
|
FloatBuffer[] |
map()
Maps the shared memory cube of this shared memory matrix.
|
void |
put(float[][] array)
Absolute bulk put method.
|
void |
put(float[][] array,
int x,
int y)
Absolute bulk put method.
|
void |
put(int i,
int j,
float value)
Absolute put method.
|
int |
unit()
Returns the unit size (in bytes) of this shared matrix.
|
alloc, cube, free
numCols, numColsWithAttributes, numMetaCols, numMetaRows, numPaddingCols, numPaddingRows, numRows, numRowsWithAttributes, setColAttributes, setRowAttributes
public SharedFloatMatrix(int rows, int cols)
rows
- Number of rows.cols
- Number of colums.public FloatBuffer[] map()
map
in class SharedAbstractMatrix<SharedFloatMatrix>
public float[][] array()
public float get(int i, int j)
i
- The row index from which the float will be read.j
- The column index from which the float will be read.public void get(float[][] array, int x, int y)
array
- The float array at the given index.x
- The row index from which the float array will be read.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 i, int j, float value)
i
- The row index at which the float will be written.j
- The column index at which the float will be written.value
- The float to be written.public void put(float[][] array, int x, int y)
array
- The float array to be written.x
- The row index at which the float array will 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.