DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
DNDS::EigenMatrixView< B, t_scalar, M, N > Class Template Reference

#include <EigenUtil.hpp>

Public Types

using t_matrix = Eigen::Matrix< std::remove_cv_t< t_scalar >, M, N >
 
using t_map_const = Eigen::Map< const t_matrix >
 
using t_map = std::conditional_t< std::is_const_v< t_scalar >, t_map_const, Eigen::Map< t_matrix > >
 
using t_self = EigenMatrixView< B, t_scalar, M, N >
 

Public Member Functions

DNDS_DEVICE_CALLABLE EigenMatrixView (t_scalar *n_ptr, rowsize m, rowsize n)
 
DNDS_DEVICE_CALLABLE t_scalar * data () const
 
DNDS_DEVICE_CALLABLE rowsize rows () const
 
DNDS_DEVICE_CALLABLE rowsize cols () const
 
DNDS_DEVICE_CALLABLE t_map map ()
 
DNDS_DEVICE_CALLABLE t_map_const map () const
 

Protected Attributes

t_scalar * ptr = nullptr
 
 EmptyNoDefault
 
rowsize M_dynamic = 0
 
rowsize N_dynamic = 0
 

Detailed Description

template<DeviceBackend B, typename t_scalar, int M, int N>
class DNDS::EigenMatrixView< B, t_scalar, M, N >

Definition at line 202 of file EigenUtil.hpp.

Member Typedef Documentation

◆ t_map

template<DeviceBackend B, typename t_scalar , int M, int N>
using DNDS::EigenMatrixView< B, t_scalar, M, N >::t_map = std::conditional_t<std::is_const_v<t_scalar>, t_map_const, Eigen::Map<t_matrix> >

Definition at line 209 of file EigenUtil.hpp.

◆ t_map_const

template<DeviceBackend B, typename t_scalar , int M, int N>
using DNDS::EigenMatrixView< B, t_scalar, M, N >::t_map_const = Eigen::Map<const t_matrix>

Definition at line 208 of file EigenUtil.hpp.

◆ t_matrix

template<DeviceBackend B, typename t_scalar , int M, int N>
using DNDS::EigenMatrixView< B, t_scalar, M, N >::t_matrix = Eigen::Matrix<std::remove_cv_t<t_scalar>, M, N>

Definition at line 207 of file EigenUtil.hpp.

◆ t_self

template<DeviceBackend B, typename t_scalar , int M, int N>
using DNDS::EigenMatrixView< B, t_scalar, M, N >::t_self = EigenMatrixView<B, t_scalar, M, N>

Definition at line 211 of file EigenUtil.hpp.

Constructor & Destructor Documentation

◆ EigenMatrixView()

template<DeviceBackend B, typename t_scalar , int M, int N>
DNDS_DEVICE_CALLABLE DNDS::EigenMatrixView< B, t_scalar, M, N >::EigenMatrixView ( t_scalar *  n_ptr,
rowsize  m,
rowsize  n 
)
inline

Definition at line 221 of file EigenUtil.hpp.

Member Function Documentation

◆ cols()

template<DeviceBackend B, typename t_scalar , int M, int N>
DNDS_DEVICE_CALLABLE rowsize DNDS::EigenMatrixView< B, t_scalar, M, N >::cols ( ) const
inline

Definition at line 239 of file EigenUtil.hpp.

Here is the caller graph for this function:

◆ data()

template<DeviceBackend B, typename t_scalar , int M, int N>
DNDS_DEVICE_CALLABLE t_scalar * DNDS::EigenMatrixView< B, t_scalar, M, N >::data ( ) const
inline

Definition at line 226 of file EigenUtil.hpp.

◆ map() [1/2]

template<DeviceBackend B, typename t_scalar , int M, int N>
DNDS_DEVICE_CALLABLE t_map DNDS::EigenMatrixView< B, t_scalar, M, N >::map ( )
inline

Definition at line 247 of file EigenUtil.hpp.

Here is the call graph for this function:

◆ map() [2/2]

template<DeviceBackend B, typename t_scalar , int M, int N>
DNDS_DEVICE_CALLABLE t_map_const DNDS::EigenMatrixView< B, t_scalar, M, N >::map ( ) const
inline

Definition at line 252 of file EigenUtil.hpp.

Here is the call graph for this function:

◆ rows()

template<DeviceBackend B, typename t_scalar , int M, int N>
DNDS_DEVICE_CALLABLE rowsize DNDS::EigenMatrixView< B, t_scalar, M, N >::rows ( ) const
inline

Definition at line 231 of file EigenUtil.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ EmptyNoDefault

template<DeviceBackend B, typename t_scalar , int M, int N>
DNDS::EigenMatrixView< B, t_scalar, M, N >::EmptyNoDefault
protected

Definition at line 215 of file EigenUtil.hpp.

◆ M_dynamic

template<DeviceBackend B, typename t_scalar , int M, int N>
rowsize DNDS::EigenMatrixView< B, t_scalar, M, N >::M_dynamic = 0
protected

Definition at line 215 of file EigenUtil.hpp.

◆ N_dynamic

template<DeviceBackend B, typename t_scalar , int M, int N>
rowsize DNDS::EigenMatrixView< B, t_scalar, M, N >::N_dynamic = 0
protected

Definition at line 216 of file EigenUtil.hpp.

◆ ptr

template<DeviceBackend B, typename t_scalar , int M, int N>
t_scalar* DNDS::EigenMatrixView< B, t_scalar, M, N >::ptr = nullptr
protected

Definition at line 214 of file EigenUtil.hpp.


The documentation for this class was generated from the following file: