Generic submatrix view adapter used internally in the OpenCLMatrixDomain.
More...
#include <opencl-domain.h>
|
| SubmatrixAdapter () |
| NULL constructor. More...
|
|
| SubmatrixAdapter (const _Matrix &M) |
| Constructor from an existing . More...
|
|
| SubmatrixAdapter (const _Matrix &M, size_t row, size_t col, size_t Rowdim, size_t Coldim) |
| Constructor from an existing Matrix and dimensions. More...
|
|
| SubmatrixAdapter (const _Matrix &M, int row, int col, int Rowdim, int Coldim) |
| BB constructor to reduce warnings in clang.
|
|
| SubmatrixAdapter (const SubmatrixAdapter< _Matrix > &SM) |
| Constructor from an existing SubmatrixAdapter. More...
|
|
| SubmatrixAdapter (const SubmatrixAdapter< _Matrix > &SM, size_t row, size_t col, size_t Rowdim, size_t Coldim) |
| Constructor from an existing submatrix and dimensions. More...
|
|
| SubmatrixAdapter (const SubmatrixAdapter< _Matrix > &SM, int row, int col, int Rowdim, int Coldim) |
| BB constructor to reduce warnings in clang.
|
|
size_t | rowdim () const |
| Get the number of rows in the matrix. More...
|
|
size_t | coldim () const |
| Get the number of columns in the matrix. More...
|
|
size_t | getStride () const |
| Get the stride of the matrix. More...
|
|
const Element & | setEntry (size_t i, size_t j, const Element &a_ij) |
| Set the entry at (i, j). More...
|
|
Element & | refEntry (size_t i, size_t j) |
| Get a writeable reference to an entry in the matrix. More...
|
|
const Element & | getEntry (size_t i, size_t j) const |
| Get a read-only individual entry from the matrix. More...
|
|
Element & | getEntry (Element &x, size_t i, size_t j) |
| Get an entry and store it in the given value. More...
|
|
_Matrix & | getMatrix () |
| Access the parent matrix. More...
|
|
template<class _Matrix>
class LinBox::SubmatrixAdapter< _Matrix >
Generic submatrix view adapter used internally in the OpenCLMatrixDomain.
◆ SubmatrixAdapter() [1/5]
◆ SubmatrixAdapter() [2/5]
Constructor from an existing .
- Parameters
-
M | Pointer to Matrix of which to construct submatrix |
◆ SubmatrixAdapter() [3/5]
SubmatrixAdapter |
( |
const _Matrix & |
M, |
|
|
size_t |
row, |
|
|
size_t |
col, |
|
|
size_t |
Rowdim, |
|
|
size_t |
Coldim |
|
) |
| |
|
inline |
Constructor from an existing Matrix and dimensions.
- Parameters
-
M | Pointer to Matrix of which to construct submatrix |
row | Starting row |
col | Starting column |
Rowdim | Row dimension |
Coldim | Column dimension |
◆ SubmatrixAdapter() [4/5]
◆ SubmatrixAdapter() [5/5]
Constructor from an existing submatrix and dimensions.
- Parameters
-
SM | Constant reference to SubmatrixAdapter from which to construct submatrix |
rowbeg | Starting row |
colbeg | Starting column |
Rowdim | Row dimension |
Coldim | Column dimension |
◆ rowdim()
Get the number of rows in the matrix.
- Returns
- Number of rows in matrix
◆ coldim()
Get the number of columns in the matrix.
- Returns
- Number of columns in matrix
◆ getStride()
size_t getStride |
( |
| ) |
const |
|
inline |
Get the stride of the matrix.
- Returns
- stride of submatrix (number of cols of parent matrix)
◆ setEntry()
const Element& setEntry |
( |
size_t |
i, |
|
|
size_t |
j, |
|
|
const Element & |
a_ij |
|
) |
| |
|
inline |
Set the entry at (i, j).
- Parameters
-
i | Row index of entry, 0...rowdim() - 1 |
j | Column index of entry, 0...coldim() - 1 |
a_ij | Element to set |
◆ refEntry()
Element& refEntry |
( |
size_t |
i, |
|
|
size_t |
j |
|
) |
| |
|
inline |
Get a writeable reference to an entry in the matrix.
- Parameters
-
- Returns
- Reference to matrix entry
◆ getEntry() [1/2]
const Element& getEntry |
( |
size_t |
i, |
|
|
size_t |
j |
|
) |
| const |
|
inline |
Get a read-only individual entry from the matrix.
- Parameters
-
- Returns
- Const reference to matrix entry
◆ getEntry() [2/2]
Element& getEntry |
( |
Element & |
x, |
|
|
size_t |
i, |
|
|
size_t |
j |
|
) |
| |
|
inline |
Get an entry and store it in the given value.
This form is more in the Linbox style and is provided for interface compatibility with other parts of the library
- Parameters
-
x | Element in which to store result |
i | Row index of entry, 0...rowdim() - 1 |
j | Column index of entry, 0...coldim() - 1 |
- Returns
- Reference to x
◆ getMatrix()
Access the parent matrix.
- Returns
- Reference to _Mat
The documentation for this class was generated from the following file: