Skip to content

Class muda::DenseMatrixViewerBase

template <bool IsConst, typename T>

ClassList > muda > DenseMatrixViewerBase

Inherits the following classes: muda::ViewerBase

Public Types

Type Name
typedef Buffer2DView< T > Buffer2DView
typedef CBuffer2DView< T > CBuffer2DView
typedef MapMatrixT< const MatrixType > CMapMatrix
typedef DenseMatrixViewerBase< 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 DenseMatrixViewerBase< 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
constexpr bool IsConst = = IsConst_
constexpr bool IsNonConst = = !IsConst_

Public Functions

Type Name
MUDA_GENERIC DenseMatrixViewerBase (ThisBuffer2DView view, size_t row_offset, size_t col_offset, size_t row_size, size_t col_size)
MUDA_GENERIC auto as_const () const
MUDA_GENERIC Eigen::Block< ThisMapMatrix > as_eigen ()
MUDA_GENERIC Eigen::Block< CMapMatrix > as_eigen () const
MUDA_GENERIC ThisViewer block (size_t row_offset, size_t col_offset, size_t row_size, size_t col_size)
MUDA_GENERIC ThisViewer block (int row_offset, int col_offset)
MUDA_GENERIC ConstViewer block (size_t row_offset, size_t col_offset, size_t row_size, size_t col_size) const
MUDA_GENERIC ConstViewer block (int row_offset, int col_offset) const
MUDA_GENERIC auto buffer_view ()
MUDA_GENERIC auto buffer_view () const
MUDA_GENERIC size_t col () const
MUDA_GENERIC auto col_offset () const
MUDA_GENERIC operator ConstViewer () const
MUDA_GENERIC Block< CMapMatrix > ()
MUDA_GENERIC Block< CMapMatrix > () const
MUDA_GENERIC auto_const_t< T > & operator() (size_t i, size_t j)
MUDA_GENERIC const T & operator() (size_t i, size_t j) 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::DenseMatrixViewerBase< IsConst, T >::Buffer2DView =  Buffer2DView<T>;

typedef CBuffer2DView

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

typedef CMapMatrix

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

typedef ConstViewer

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

typedef MapMatrix

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

typedef MapMatrixT

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

typedef MatrixType

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

typedef NonConstViewer

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

typedef ThisBuffer2DView

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

typedef ThisMapMatrix

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

typedef ThisViewer

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

Public Functions Documentation

function DenseMatrixViewerBase

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

function as_const

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

function as_eigen [1/2]

MUDA_GENERIC Eigen::Block< ThisMapMatrix > muda::DenseMatrixViewerBase::as_eigen () 

function as_eigen [2/2]

MUDA_GENERIC Eigen::Block< CMapMatrix > muda::DenseMatrixViewerBase::as_eigen () const

function block [1/4]

MUDA_GENERIC ThisViewer muda::DenseMatrixViewerBase::block (
    size_t row_offset,
    size_t col_offset,
    size_t row_size,
    size_t col_size
) 

function block [2/4]

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

function block [3/4]

inline MUDA_GENERIC ConstViewer muda::DenseMatrixViewerBase::block (
    size_t row_offset,
    size_t col_offset,
    size_t row_size,
    size_t col_size
) const

function block [4/4]

template<int M, int N>
inline MUDA_GENERIC ConstViewer muda::DenseMatrixViewerBase::block (
    int row_offset,
    int col_offset
) const

function buffer_view [1/2]

inline MUDA_GENERIC auto muda::DenseMatrixViewerBase::buffer_view () 

function buffer_view [2/2]

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

function col

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

function col_offset

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

function operator ConstViewer

inline MUDA_GENERIC muda::DenseMatrixViewerBase::operator ConstViewer () const

function Block< CMapMatrix > [1/2]

MUDA_GENERIC muda::DenseMatrixViewerBase::Block< CMapMatrix > () 

function Block< CMapMatrix > [2/2]

inline MUDA_GENERIC muda::DenseMatrixViewerBase::Block< CMapMatrix > () const

function operator() [1/2]

MUDA_GENERIC auto_const_t< T > & muda::DenseMatrixViewerBase::operator() (
    size_t i,
    size_t j
) 

function operator() [2/2]

inline MUDA_GENERIC const T & muda::DenseMatrixViewerBase::operator() (
    size_t i,
    size_t j
) const

function origin_col

MUDA_GENERIC size_t muda::DenseMatrixViewerBase::origin_col () const

function origin_row

MUDA_GENERIC size_t muda::DenseMatrixViewerBase::origin_row () const

function row

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

function row_offset

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

Protected Attributes Documentation

variable m_col_offset

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

variable m_col_size

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

variable m_row_offset

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

variable m_row_size

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

variable m_view

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


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