Skip to content

Class muda::Dense1DT

template <bool IsConst, typename T>

ClassList > muda > Dense1DT

Inherits the following classes: muda::ViewerBase

Public Types

Type Name
typedef Dense1DT< true, T > ConstViewer
typedef Dense1DT< false, T > NonConstViewer
typedef Dense1DT< IsConst, T > ThisViewer
typedef T value_type

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 Dense1DT ()
MUDA_GENERIC Dense1DT (auto_const_t< T > * p, int dim)
MUDA_GENERIC Dense1DT (const Dense1DT & other) = default
MUDA_GENERIC Dense1DT (const Dense1DT< OtherIsConst, T > & other)
MUDA_GENERIC auto as_const () const
MUDA_GENERIC auto_const_t< T > * data () const
MUDA_GENERIC int dim () const
MUDA_GENERIC auto_const_t< T > & operator() (int x) const
MUDA_GENERIC ThisViewer subview (int offset) const
MUDA_GENERIC ThisViewer subview (int offset, int size) const
MUDA_GENERIC int total_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 = = nullptr
int m_dim = = 0

Protected Functions

Type Name
MUDA_INLINE MUDA_GENERIC void check () const
MUDA_GENERIC int map (int x) 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 ConstViewer

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

typedef NonConstViewer

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

typedef ThisViewer

using muda::Dense1DT< IsConst, T >::ThisViewer =  Dense1DT<IsConst, T>;

typedef value_type

using muda::Dense1DT< IsConst, T >::value_type =  T;

Public Functions Documentation

function Dense1DT [1/4]

MUDA_GENERIC muda::Dense1DT::Dense1DT () 

function Dense1DT [2/4]

inline MUDA_GENERIC muda::Dense1DT::Dense1DT (
    auto_const_t< T > * p,
    int dim
) 

function Dense1DT [3/4]

MUDA_GENERIC muda::Dense1DT::Dense1DT (
    const Dense1DT & other
) = default

function Dense1DT [4/4]

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

function as_const

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

function data

inline MUDA_GENERIC auto_const_t< T > * muda::Dense1DT::data () const

function dim

inline MUDA_GENERIC int muda::Dense1DT::dim () const

function operator()

inline MUDA_GENERIC auto_const_t< T > & muda::Dense1DT::operator() (
    int x
) const

function subview [1/2]

inline MUDA_GENERIC ThisViewer muda::Dense1DT::subview (
    int offset
) const

function subview [2/2]

inline MUDA_GENERIC ThisViewer muda::Dense1DT::subview (
    int offset,
    int size
) const

function total_size

inline MUDA_GENERIC int muda::Dense1DT::total_size () const

Protected Attributes Documentation

variable m_data

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

variable m_dim

int muda::Dense1DT< IsConst, T >::m_dim;

Protected Functions Documentation

function check

inline MUDA_INLINE MUDA_GENERIC void muda::Dense1DT::check () const

function map

inline MUDA_GENERIC int muda::Dense1DT::map (
    int x
) const


The documentation for this class was generated from the following file src/muda/viewer/dense/dense_1d.h