Generic submatrix view adapter used internally in the OpenCLMatrixDomain.
More...
#include <opencl-domain.h>
|
|
| SubmatrixAdapter () |
| | NULL constructor.
|
| |
| | SubmatrixAdapter (const _Matrix &M) |
| | Constructor from an existing @refMatrix.
|
| |
| | SubmatrixAdapter (const _Matrix &M, size_t row, size_t col, size_t Rowdim, size_t Coldim) |
| | Constructor from an existing Matrix and dimensions.
|
| |
|
| 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.
|
| |
| | SubmatrixAdapter (const SubmatrixAdapter< _Matrix > &SM, size_t row, size_t col, size_t Rowdim, size_t Coldim) |
| | Constructor from an existing submatrix and dimensions.
|
| |
|
| 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.
|
| |
| size_t | coldim () const |
| | Get the number of columns in the matrix.
|
| |
| size_t | getStride () const |
| | Get the stride of the matrix.
|
| |
| const void | setEntry (size_t i, size_t j, const Element &a_ij) |
| | Set the entry at (i, j).
|
| |
| Element & | refEntry (size_t i, size_t j) |
| | Get a writeable reference to an entry in the matrix.
|
| |
| const Element & | getEntry (size_t i, size_t j) const |
| | Get a read-only individual entry from the matrix.
|
| |
| Element & | getEntry (Element &x, size_t i, size_t j) |
| | Get an entry and store it in the given value.
|
| |
| _Matrix & | getMatrix () |
| | Access the parent matrix.
|
| |
template<class _Matrix>
class LinBox::SubmatrixAdapter< _Matrix >
Generic submatrix view adapter used internally in the OpenCLMatrixDomain.
◆ SubmatrixAdapter() [1/4]
Constructor from an existing @refMatrix.
- Parameters
-
| M | Pointer to Matrix of which to construct submatrix |
◆ SubmatrixAdapter() [2/4]
template<class _Matrix>
| 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() [3/4]
◆ SubmatrixAdapter() [4/4]
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()
template<class _Matrix>
| size_t getStride |
( |
| ) |
const |
|
inline |
Get the stride of the matrix.
- Returns
- stride of submatrix (number of cols of parent matrix)
◆ setEntry()
template<class _Matrix>
| const void 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()
template<class _Matrix>
| 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]
template<class _Matrix>
| 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]
template<class _Matrix>
| 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: