|
| OPM_HOST_DEVICE | MiniMatrix ()=default |
| | Default constructor.
|
| OPM_HOST_DEVICE | MiniMatrix (std::initializer_list< T > init) |
| | Constructor from initializer list.
|
|
template<class Type, int n, int m> |
| | MiniMatrix (MatrixBlock< Type, n, m > mb) |
|
OPM_HOST_DEVICE | MiniMatrix (const T &value) |
| OPM_HOST_DEVICE T * | operator[] (size_type row) |
| | Access row for further column indexing.
|
| OPM_HOST_DEVICE const T * | operator[] (size_type row) const |
| | Access row for further column indexing (const version).
|
|
OPM_HOST_DEVICE auto | begin () |
| | Get iterator to beginning of data.
|
|
OPM_HOST_DEVICE auto | end () |
| | Get iterator to end of data.
|
|
OPM_HOST_DEVICE auto | begin () const |
| | Get const iterator to beginning of data.
|
|
OPM_HOST_DEVICE auto | end () const |
| | Get const iterator to end of data.
|
|
OPM_HOST_DEVICE T * | data () |
| | Get pointer to raw data.
|
|
OPM_HOST_DEVICE const T * | data () const |
| | Get const pointer to raw data.
|
| OPM_HOST_DEVICE void | fill (const T &value) |
| | Fill all elements with a value.
|
| OPM_HOST_DEVICE MiniMatrix & | operator+= (const MiniMatrix &other) |
| | Add another matrix to this one (element-wise).
|
| OPM_HOST_DEVICE MiniMatrix | operator+ (const MiniMatrix &other) const |
| | Add two matrices (element-wise).
|
| OPM_HOST_DEVICE MiniMatrix & | operator-= (const MiniMatrix &other) |
| | Subtract another matrix from this one (element-wise).
|
| OPM_HOST_DEVICE MiniMatrix | operator- (const MiniMatrix &other) const |
| | Subtract two matrices (element-wise).
|
|
OPM_HOST_DEVICE MiniMatrix & | operator= (const T &scalar) |
| OPM_HOST_DEVICE std::array< T, dimension > | operator* (const std::array< T, dimension > &x) const |
| | Matrix-vector multiplication: y = A * x.
|
| OPM_HOST_DEVICE MiniMatrix & | operator*= (const MiniMatrix &B) |
| | Matrix-matrix multiplication: C = A * B.
|
| OPM_HOST_DEVICE MiniMatrix | operator* (const MiniMatrix &B) const |
| | Matrix-matrix multiplication: C = A * B.
|
| OPM_HOST_DEVICE Opm::gpuistl::MiniVector< T, dimension > | operator* (const Opm::gpuistl::MiniVector< T, dimension > &x) const |
| | Matrix-vector multiplication: y = A * x, with MiniVector.
|
|
OPM_HOST_DEVICE MiniMatrix & | operator*= (const T &scalar) |
|
OPM_HOST_DEVICE MiniMatrix | operator+= (const T &scalar) |
template<class T, int dimension>
class Opm::gpuistl::MiniMatrix< T, dimension >
A small fixed-size square matrix class for use in CUDA kernels.
- Template Parameters
-
| T | Element type. |
| dimension | Number of rows and columns (matrix is dimension x dimension). |