Skip to content

Class muda::DenseMatrixViewerT

template <bool IsConst, typename T>

ClassList > muda > DenseMatrixViewerT

Inherits the following classes: muda::ViewerBase

Public Types

Type Name
typedef Buffer2DView< T > Buffer2DView
typedef CBuffer2DView< T > CBuffer2DView
typedef MapMatrixT< const MatrixType > CMapMatrix
typedef DenseMatrixViewerT< true, T > ConstViewer
typedef MapMatrixT< MatrixType > MapMatrix
typedef Eigen::Map< U, Eigen::AlignmentType::Unaligned, Eigen::Stride< Eigen::Dynamic, Eigen::Dynamic > > MapMatrixT
typedef Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > MatrixType
typedef DenseMatrixViewerT< false, T > NonConstViewer
typedef std::conditional_t< IsConst, CBuffer2DView, Buffer2DView > ThisBuffer2DView
typedef std::conditional_t< IsConst, CMapMatrix, MapMatrix > ThisMapMatrix
typedef std::conditional_t< IsConst, ConstViewer, NonConstViewer > ThisViewer

Public Static Attributes inherited from muda::ViewerBase

See muda::ViewerBase

Type Name
bool IsConst = = IsConst_
bool IsNonConst = = !IsConst_

Public Functions

Type Name
MUDA_GENERIC DenseMatrixViewerT (ThisBuffer2DView view, size_t row_offset, size_t col_offset, size_t row_size, size_t col_size)
MUDA_GENERIC DenseMatrixViewerT (const DenseMatrixViewerT< OtherIsConst, T > & other)
MUDA_VIEWER_COMMON_NAME (DenseMatrixViewerT)
MUDA_GENERIC auto as_const () const
MUDA_GENERIC Eigen::Block< ThisMapMatrix > as_eigen () const
MUDA_DEVICE T atomic_add (size_t i, size_t j, T val) const
MUDA_DEVICE Eigen::Matrix< T, M, N > atomic_add (const Eigen::Matrix< T, M, N > & other) const
MUDA_GENERIC ThisViewer block (size_t row_offset, size_t col_offset, size_t row_size, size_t col_size) const
MUDA_GENERIC ThisViewer block (int row_offset, int col_offset)
MUDA_GENERIC auto buffer_view () const
MUDA_GENERIC size_t col () const
MUDA_GENERIC auto col_offset () const
MUDA_GENERIC auto_const_t< T > & operator() (size_t i, size_t j) const
MUDA_GENERIC DenseMatrixViewerT & operator= (const Eigen::Matrix< T, M, N > & other) const
MUDA_GENERIC size_t origin_col () const
MUDA_GENERIC size_t origin_row () const
MUDA_GENERIC size_t row () const
MUDA_GENERIC auto row_offset () const

Public Functions inherited from muda::ViewerBase

See muda::ViewerBase

Type Name
MUDA_GENERIC ViewerBase ()
ViewerBase (const ViewerBase &) = default
ViewerBase (ViewerBase &&) = default
MUDA_INLINE MUDA_GENERIC void copy_label (const ViewerBase & other)
MUDA_GENERIC const char * kernel_file () const
MUDA_GENERIC int kernel_line () const
MUDA_GENERIC const char * kernel_name () const
MUDA_GENERIC const char * name () const
ViewerBase & operator= (const ViewerBase &) = default
ViewerBase & operator= (ViewerBase &&) = default

Protected Types inherited from muda::ViewerBase

See muda::ViewerBase

Type Name
typedef std::conditional_t< IsConst, const T, T > auto_const_t
typedef std::enable_if_t< IsNonConst, T > non_const_enable_t

Protected Attributes

Type Name
size_t m_col_offset = = 0
size_t m_col_size = = 0
size_t m_row_offset = = 0
size_t m_row_size = = 0
ThisBuffer2DView m_view

Protected Functions inherited from muda::ViewerBase

See muda::ViewerBase

Type Name
MUDA_INLINE MUDA_HOST void name (const char * n)
MUDA_INLINE MUDA_GENERIC void name (details::StringPointer pointer)

Public Types Documentation

typedef Buffer2DView

using muda::DenseMatrixViewerT< IsConst, T >::Buffer2DView =  Buffer2DView<T>;

typedef CBuffer2DView

using muda::DenseMatrixViewerT< IsConst, T >::CBuffer2DView =  CBuffer2DView<T>;

typedef CMapMatrix

using muda::DenseMatrixViewerT< IsConst, T >::CMapMatrix =  MapMatrixT<const MatrixType>;

typedef ConstViewer

using muda::DenseMatrixViewerT< IsConst, T >::ConstViewer =  DenseMatrixViewerT<true, T>;

typedef MapMatrix

using muda::DenseMatrixViewerT< IsConst, T >::MapMatrix =  MapMatrixT<MatrixType>;

typedef MapMatrixT

using muda::DenseMatrixViewerT< IsConst, T >::MapMatrixT = 
        Eigen::Map<U, Eigen::AlignmentType::Unaligned, Eigen::Stride<Eigen::Dynamic, Eigen::Dynamic>>;

typedef MatrixType

using muda::DenseMatrixViewerT< IsConst, T >::MatrixType =  Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor>;

typedef NonConstViewer

using muda::DenseMatrixViewerT< IsConst, T >::NonConstViewer =  DenseMatrixViewerT<false, T>;

typedef ThisBuffer2DView

using muda::DenseMatrixViewerT< IsConst, T >::ThisBuffer2DView =  std::conditional_t<IsConst, CBuffer2DView, Buffer2DView>;

typedef ThisMapMatrix

using muda::DenseMatrixViewerT< IsConst, T >::ThisMapMatrix =  std::conditional_t<IsConst, CMapMatrix, MapMatrix>;

typedef ThisViewer

using muda::DenseMatrixViewerT< IsConst, T >::ThisViewer =  std::conditional_t<IsConst, ConstViewer, NonConstViewer>;

Public Functions Documentation

function DenseMatrixViewerT [2/3]

inline MUDA_GENERIC muda::DenseMatrixViewerT::DenseMatrixViewerT (
    ThisBuffer2DView view,
    size_t row_offset,
    size_t col_offset,
    size_t row_size,
    size_t col_size
) 

function DenseMatrixViewerT [3/3]

template<bool OtherIsConst>
inline MUDA_GENERIC muda::DenseMatrixViewerT::DenseMatrixViewerT (
    const DenseMatrixViewerT < OtherIsConst, T > & other
) 

function MUDA_VIEWER_COMMON_NAME

muda::DenseMatrixViewerT::MUDA_VIEWER_COMMON_NAME (
    DenseMatrixViewerT
) 

function as_const

inline MUDA_GENERIC auto muda::DenseMatrixViewerT::as_const () const

function as_eigen

inline MUDA_GENERIC Eigen::Block< ThisMapMatrix > muda::DenseMatrixViewerT::as_eigen () const

function atomic_add [1/2]

inline MUDA_DEVICE T muda::DenseMatrixViewerT::atomic_add (
    size_t i,
    size_t j,
    T val
) const

function atomic_add [2/2]

template<int M, int N>
inline MUDA_DEVICE Eigen::Matrix< T, M, N > muda::DenseMatrixViewerT::atomic_add (
    const Eigen::Matrix< T, M, N > & other
) const

function block [1/2]

inline MUDA_GENERIC ThisViewer muda::DenseMatrixViewerT::block (
    size_t row_offset,
    size_t col_offset,
    size_t row_size,
    size_t col_size
) const

function block [2/2]

template<int M, int N>
inline MUDA_GENERIC ThisViewer muda::DenseMatrixViewerT::block (
    int row_offset,
    int col_offset
) 

function buffer_view

inline MUDA_GENERIC auto muda::DenseMatrixViewerT::buffer_view () const

function col

inline MUDA_GENERIC size_t muda::DenseMatrixViewerT::col () const

function col_offset

inline MUDA_GENERIC auto muda::DenseMatrixViewerT::col_offset () const

function operator()

inline MUDA_GENERIC auto_const_t< T > & muda::DenseMatrixViewerT::operator() (
    size_t i,
    size_t j
) const

function operator=

template<int M, int N>
inline MUDA_GENERIC DenseMatrixViewerT & muda::DenseMatrixViewerT::operator= (
    const Eigen::Matrix< T, M, N > & other
) const

function origin_col

inline MUDA_GENERIC size_t muda::DenseMatrixViewerT::origin_col () const

function origin_row

inline MUDA_GENERIC size_t muda::DenseMatrixViewerT::origin_row () const

function row

inline MUDA_GENERIC size_t muda::DenseMatrixViewerT::row () const

function row_offset

inline MUDA_GENERIC auto muda::DenseMatrixViewerT::row_offset () const

Protected Attributes Documentation

variable m_col_offset

size_t muda::DenseMatrixViewerT< IsConst, T >::m_col_offset;

variable m_col_size

size_t muda::DenseMatrixViewerT< IsConst, T >::m_col_size;

variable m_row_offset

size_t muda::DenseMatrixViewerT< IsConst, T >::m_row_offset;

variable m_row_size

size_t muda::DenseMatrixViewerT< IsConst, T >::m_row_size;

variable m_view

ThisBuffer2DView muda::DenseMatrixViewerT< IsConst, T >::m_view;


The documentation for this class was generated from the following file src/muda/ext/linear_system/dense_matrix_viewer.h