|
MiniMatrix.hpp
Go to the documentation of this file.
241 OPM_HOST_DEVICE Opm::gpuistl::MiniVector<T, dimension> operator*(const Opm::gpuistl::MiniVector<T, dimension>& x) const {
Definition: matrixblock.hh:229 A small fixed-size square matrix class for use in CUDA kernels. Definition: MiniMatrix.hpp:37 OPM_HOST_DEVICE MiniMatrix & operator-=(const MiniMatrix &other) Subtract another matrix from this one (element-wise). Definition: MiniMatrix.hpp:167 OPM_HOST_DEVICE MiniMatrix & operator*=(const MiniMatrix &B) Matrix-matrix multiplication: C = A * B. Definition: MiniMatrix.hpp:211 OPM_HOST_DEVICE MiniMatrix & operator*=(const T &scalar) Definition: MiniMatrix.hpp:252 MiniMatrix(MatrixBlock< Type, n, m > mb) Definition: MiniMatrix.hpp:63 OPM_HOST_DEVICE auto begin() Get iterator to beginning of data. Definition: MiniMatrix.hpp:100 OPM_HOST_DEVICE auto end() Get iterator to end of data. Definition: MiniMatrix.hpp:105 OPM_HOST_DEVICE MiniMatrix operator+(const MiniMatrix &other) const Add two matrices (element-wise). Definition: MiniMatrix.hpp:156 OPM_HOST_DEVICE MiniMatrix(const T &value) Definition: MiniMatrix.hpp:75 OPM_HOST_DEVICE MiniMatrix operator+=(const T &scalar) Definition: MiniMatrix.hpp:258 static OPM_HOST_DEVICE constexpr size_type size() Get matrix dimension. Definition: MiniMatrix.hpp:138 OPM_HOST_DEVICE MiniMatrix operator*(const MiniMatrix &B) const Matrix-matrix multiplication: C = A * B. Definition: MiniMatrix.hpp:229 OPM_HOST_DEVICE MiniMatrix()=default Default constructor. Elements are default-initialized. std::array< T, dimension *dimension > array_type Definition: MiniMatrix.hpp:41 OPM_HOST_DEVICE auto begin() const Get const iterator to beginning of data. Definition: MiniMatrix.hpp:110 OPM_HOST_DEVICE const T * operator[](size_type row) const Access row for further column indexing (const version). Definition: MiniMatrix.hpp:93 OPM_HOST_DEVICE MiniMatrix & operator=(const T &scalar) Definition: MiniMatrix.hpp:184 OPM_HOST_DEVICE std::array< T, dimension > operator*(const std::array< T, dimension > &x) const Matrix-vector multiplication: y = A * x. Definition: MiniMatrix.hpp:195 OPM_HOST_DEVICE T * operator[](size_type row) Access row for further column indexing. Definition: MiniMatrix.hpp:84 OPM_HOST_DEVICE MiniMatrix & operator+=(const MiniMatrix &other) Add another matrix to this one (element-wise). Definition: MiniMatrix.hpp:145 OPM_HOST_DEVICE MiniMatrix(std::initializer_list< T > init) Constructor from initializer list. Definition: MiniMatrix.hpp:52 OPM_HOST_DEVICE void fill(const T &value) Fill all elements with a value. Definition: MiniMatrix.hpp:131 OPM_HOST_DEVICE const T * data() const Get const pointer to raw data. Definition: MiniMatrix.hpp:125 OPM_HOST_DEVICE T * data() Get pointer to raw data. Definition: MiniMatrix.hpp:120 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. Definition: MiniMatrix.hpp:241 OPM_HOST_DEVICE MiniMatrix operator-(const MiniMatrix &other) const Subtract two matrices (element-wise). Definition: MiniMatrix.hpp:178 OPM_HOST_DEVICE auto end() const Get const iterator to end of data. Definition: MiniMatrix.hpp:115 Definition: MiniVector.hpp:52 A small, fixed‑dimension MiniVector class backed by std::array that can be used in both host and CUDA... Definition: AmgxInterface.hpp:38 |