Skip to content

Class muda::DenseVectorViewerT

template <bool IsConst, typename T>

ClassList > muda > DenseVectorViewerT

Inherits the following classes: muda::ViewerBase

Public Types

Type Name
typedef BufferView< T > BufferView
typedef CBufferView< T > CBufferView
typedef MapVectorT< const VectorType > CMapVector
typedef DenseVectorViewerT< true, T > ConstViewer
typedef MapVectorT< VectorType > MapVector
typedef Eigen::Map< U, Eigen::AlignmentType::Unaligned, Eigen::Stride< Eigen::Dynamic, Eigen::Dynamic > > MapVectorT
typedef DenseVectorViewerT< false, T > NonConstViewer
typedef std::conditional_t< IsConst, CBufferView, BufferView > ThisBufferView
typedef std::conditional_t< IsConst, CMapVector, MapVector > ThisMapVector
typedef std::conditional_t< IsConst, ConstViewer, NonConstViewer > ThisViewer
typedef Eigen::Vector< T, Eigen::Dynamic > VectorType

Public Static Attributes inherited from muda::ViewerBase

See muda::ViewerBase

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

Public Functions

Type Name
MUDA_GENERIC DenseVectorViewerT (auto_const_t< T > * data, int offset, int size, int origin_size)
MUDA_GENERIC DenseVectorViewerT (const DenseVectorViewerT< OtherIsConst, T > & other)
MUDA_VIEWER_COMMON_NAME (DenseVectorViewerT)
MUDA_GENERIC auto as_const () const
MUDA_GENERIC Eigen::VectorBlock< ThisMapVector > as_eigen () const
MUDA_DEVICE T atomic_add (int i, T val) const
MUDA_DEVICE Eigen::Vector< T, N > atomic_add (const Eigen::Vector< T, N > & val) const
MUDA_DEVICE T atomic_add (const T & val)
MUDA_GENERIC auto offset () const
MUDA_GENERIC VectorBlock< ThisMapVector > ()
MUDA_GENERIC auto_const_t< T > & operator() (int i) const
MUDA_GENERIC DenseVectorViewerT & operator= (const Eigen::Vector< T, N > & other)
MUDA_GENERIC auto origin_data () const
MUDA_GENERIC auto origin_size () const
MUDA_GENERIC auto segment (int offset, int size) const
MUDA_GENERIC auto segment (int offset) const
MUDA_GENERIC auto size () 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
auto_const_t< T > * m_data
int m_offset = = 0
int m_origin_size = = 0
int m_size = = 0

Protected Functions

Type Name
MUDA_INLINE MUDA_GENERIC void check_data () const
MUDA_INLINE MUDA_GENERIC void check_segment (int offset, int size) const
MUDA_INLINE MUDA_GENERIC void check_size_matching (int N) const
MUDA_INLINE MUDA_GENERIC int index (int i) const

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 BufferView

using muda::DenseVectorViewerT< IsConst, T >::BufferView =  BufferView<T>;

typedef CBufferView

using muda::DenseVectorViewerT< IsConst, T >::CBufferView =  CBufferView<T>;

typedef CMapVector

using muda::DenseVectorViewerT< IsConst, T >::CMapVector =  MapVectorT<const VectorType>;

typedef ConstViewer

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

typedef MapVector

using muda::DenseVectorViewerT< IsConst, T >::MapVector =  MapVectorT<VectorType>;

typedef MapVectorT

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

typedef NonConstViewer

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

typedef ThisBufferView

using muda::DenseVectorViewerT< IsConst, T >::ThisBufferView =  std::conditional_t<IsConst, CBufferView, BufferView>;

typedef ThisMapVector

using muda::DenseVectorViewerT< IsConst, T >::ThisMapVector =  std::conditional_t<IsConst, CMapVector, MapVector>;

typedef ThisViewer

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

typedef VectorType

using muda::DenseVectorViewerT< IsConst, T >::VectorType =  Eigen::Vector<T, Eigen::Dynamic>;

Public Functions Documentation

function DenseVectorViewerT [2/3]

inline MUDA_GENERIC muda::DenseVectorViewerT::DenseVectorViewerT (
    auto_const_t< T > * data,
    int offset,
    int size,
    int origin_size
) 

function DenseVectorViewerT [3/3]

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

function MUDA_VIEWER_COMMON_NAME

muda::DenseVectorViewerT::MUDA_VIEWER_COMMON_NAME (
    DenseVectorViewerT
) 

function as_const

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

function as_eigen

inline MUDA_GENERIC Eigen::VectorBlock< ThisMapVector > muda::DenseVectorViewerT::as_eigen () const

function atomic_add [1/3]

inline MUDA_DEVICE T muda::DenseVectorViewerT::atomic_add (
    int i,
    T val
) const

function atomic_add [2/3]

template<int N>
inline MUDA_DEVICE Eigen::Vector< T, N > muda::DenseVectorViewerT::atomic_add (
    const Eigen::Vector< T, N > & val
) const

function atomic_add [3/3]

inline MUDA_DEVICE T muda::DenseVectorViewerT::atomic_add (
    const T & val
) 

function offset

inline MUDA_GENERIC auto muda::DenseVectorViewerT::offset () const

function VectorBlock< ThisMapVector >

inline MUDA_GENERIC muda::DenseVectorViewerT::VectorBlock< ThisMapVector > () 

function operator()

inline MUDA_GENERIC auto_const_t< T > & muda::DenseVectorViewerT::operator() (
    int i
) const

function operator=

template<int N>
inline MUDA_GENERIC DenseVectorViewerT & muda::DenseVectorViewerT::operator= (
    const Eigen::Vector< T, N > & other
) 

function origin_data

inline MUDA_GENERIC auto muda::DenseVectorViewerT::origin_data () const

function origin_size

inline MUDA_GENERIC auto muda::DenseVectorViewerT::origin_size () const

function segment [1/2]

inline MUDA_GENERIC auto muda::DenseVectorViewerT::segment (
    int offset,
    int size
) const

function segment [2/2]

template<int N>
inline MUDA_GENERIC auto muda::DenseVectorViewerT::segment (
    int offset
) const

function size

inline MUDA_GENERIC auto muda::DenseVectorViewerT::size () const

Protected Attributes Documentation

variable m_data

auto_const_t<T>* muda::DenseVectorViewerT< IsConst, T >::m_data;

variable m_offset

int muda::DenseVectorViewerT< IsConst, T >::m_offset;

variable m_origin_size

int muda::DenseVectorViewerT< IsConst, T >::m_origin_size;

variable m_size

int muda::DenseVectorViewerT< IsConst, T >::m_size;

Protected Functions Documentation

function check_data

inline MUDA_INLINE MUDA_GENERIC void muda::DenseVectorViewerT::check_data () const

function check_segment

inline MUDA_INLINE MUDA_GENERIC void muda::DenseVectorViewerT::check_segment (
    int offset,
    int size
) const

function check_size_matching

inline MUDA_INLINE MUDA_GENERIC void muda::DenseVectorViewerT::check_size_matching (
    int N
) const

function index

inline MUDA_INLINE MUDA_GENERIC int muda::DenseVectorViewerT::index (
    int i
) const


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