public abstract class SharedAbstractMatrix<T extends SharedAbstractMatrix> extends Matrix<T> implements SharedMemory
Modifier and Type | Field and Description |
---|---|
protected Cube |
cube
The shared memory cube.
|
Constructor and Description |
---|
SharedAbstractMatrix(int rows,
int cols)
Constructs a rows-by-cols shared matrix.
|
Modifier and Type | Method and Description |
---|---|
T |
alloc()
Allocates the shared memory cube of this shared memory matrix.
|
Cube |
cube()
Returns the shared memory cube.
|
T |
free()
Frees the shared memory cube of this shared memory matrix.
|
abstract Buffer[] |
map()
Maps the shared memory cube of this shared memory matrix.
|
numCols, numColsWithAttributes, numMetaCols, numMetaRows, numPaddingCols, numPaddingRows, numRows, numRowsWithAttributes, setColAttributes, setRowAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
unit
protected Cube cube
public SharedAbstractMatrix(int rows, int cols)
rows
- Number of rows.cols
- Number of columns.public T alloc() throws Exception
alloc
in interface SharedMemory
Exception
public abstract Buffer[] map()
public T free() throws Exception
free
in interface SharedMemory
Exception
public Cube cube()
cube
in interface BackedByCube
Copyright © 2018–2020 InAccel. All rights reserved.