DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
ArrayEigenMatrix_DeviceView.hpp File Reference

Device-callable view for ArrayEigenMatrix. operator[] returns an Eigen::Map<Matrix<real, Ni, Nj>>. More...

#include "../DeviceView.hpp"
#include "../EigenUtil.hpp"
Include dependency graph for ArrayEigenMatrix_DeviceView.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DNDS::ArrayEigenMatrixDeviceView< B, real_T, _mat_ni, _mat_nj, _mat_ni_max, _mat_nj_max, _align >
 Device-callable view onto ArrayEigenMatrix rows. More...
 

Namespaces

namespace  DNDS
 the host side operators are provided as implemented
 

Macros

#define DNDS_ARRAYEIGENMATRIXVIEW_GETTER_PREREQ
 

Functions

template<rowsize _mat_ni, rowsize _mat_nj>
constexpr rowsize DNDS::__OneMatGetRowSize ()
 Compute the underlying per-row element count for an Ni x Nj matrix cell.
 

Detailed Description

Device-callable view for ArrayEigenMatrix. operator[] returns an Eigen::Map<Matrix<real, Ni, Nj>>.

Definition in file ArrayEigenMatrix_DeviceView.hpp.

Macro Definition Documentation

◆ DNDS_ARRAYEIGENMATRIXVIEW_GETTER_PREREQ

#define DNDS_ARRAYEIGENMATRIXVIEW_GETTER_PREREQ
Value:
DNDS_HD_assert_infof(iRow >= 0 && iRow < this->Size(), "invalid index %lld / %lld", iRow, this->Size()); \
rowsize c_nRow; \
if constexpr (_mat_ni == NonUniformSize) \
c_nRow = _mat_nRows[iRow]; \
else if constexpr (_mat_ni == DynamicSize) \
c_nRow = _mat_nRow_dynamic; \
else \
c_nRow = _mat_ni;
#define DNDS_HD_assert_infof(cond, info,...)
Host-only expansion of DNDS_HD_assert_infof.
Definition Errors.hpp:191

Definition at line 110 of file ArrayEigenMatrix_DeviceView.hpp.