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