Skip to content

Class muda::DenseVectorViewT

template <bool IsConst, typename T>

ClassList > muda > DenseVectorViewT

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef BufferView< T > BufferView
typedef CBufferView< T > CBufferView
typedef CDenseVectorViewer< T > CViewer
typedef DenseVectorViewT< true, T > ConstView
typedef DenseVectorViewT< false, T > NonConstView
typedef std::conditional_t< IsConst, CBufferView, BufferView > ThisBufferView
typedef DenseVectorViewT< IsConst, T > ThisView
typedef std::conditional_t< IsConst, CViewer, Viewer > ThisViewer
typedef DenseVectorViewer< T > Viewer

Public Types inherited from muda::ViewBase

See muda::ViewBase

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

Public Static Attributes inherited from muda::ViewBase

See muda::ViewBase

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

Public Functions

Type Name
MUDA_GENERIC DenseVectorViewT () = default
MUDA_GENERIC DenseVectorViewT (auto_const_t< T > * data, cusparseDnVecDescr_t descr, int offset, int inc, int size, int origin_size)
MUDA_GENERIC DenseVectorViewT (const DenseVectorViewT< OtherIsConst, T > & other)
MUDA_GENERIC ConstView as_const () const
MUDA_GENERIC auto buffer_view () const
MUDA_GENERIC auto cviewer () const
MUDA_GENERIC auto data () const
MUDA_GENERIC auto descr () const
MUDA_GENERIC auto inc () const
MUDA_GENERIC auto offset () const
MUDA_GENERIC auto origin_data () const
MUDA_GENERIC auto size () const
MUDA_GENERIC auto subview (int offset, int size) const
MUDA_GENERIC auto viewer () const

Protected Attributes

Type Name
auto_const_t< T > * m_data = = nullptr
cusparseDnVecDescr_t m_descr = = nullptr
int m_inc = = -1
int m_offset = = -1
int m_origin_size = = -1
int m_size = = -1

Public Types Documentation

typedef BufferView

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

typedef CBufferView

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

typedef CViewer

using muda::DenseVectorViewT< IsConst, T >::CViewer =  CDenseVectorViewer<T>;

typedef ConstView

using muda::DenseVectorViewT< IsConst, T >::ConstView =  DenseVectorViewT<true, T>;

typedef NonConstView

using muda::DenseVectorViewT< IsConst, T >::NonConstView =  DenseVectorViewT<false, T>;

typedef ThisBufferView

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

typedef ThisView

using muda::DenseVectorViewT< IsConst, T >::ThisView =  DenseVectorViewT<IsConst, T>;

typedef ThisViewer

using muda::DenseVectorViewT< IsConst, T >::ThisViewer =  std::conditional_t<IsConst, CViewer, Viewer>;

typedef Viewer

using muda::DenseVectorViewT< IsConst, T >::Viewer =  DenseVectorViewer<T>;

Public Functions Documentation

function DenseVectorViewT [2/4]

MUDA_GENERIC muda::DenseVectorViewT::DenseVectorViewT () = default

function DenseVectorViewT [3/4]

inline MUDA_GENERIC muda::DenseVectorViewT::DenseVectorViewT (
    auto_const_t< T > * data,
    cusparseDnVecDescr_t descr,
    int offset,
    int inc,
    int size,
    int origin_size
) 

function DenseVectorViewT [4/4]

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

function as_const

inline MUDA_GENERIC ConstView muda::DenseVectorViewT::as_const () const

function buffer_view

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

function cviewer

inline MUDA_GENERIC auto muda::DenseVectorViewT::cviewer () const

function data

inline MUDA_GENERIC auto muda::DenseVectorViewT::data () const

function descr

inline MUDA_GENERIC auto muda::DenseVectorViewT::descr () const

function inc

inline MUDA_GENERIC auto muda::DenseVectorViewT::inc () const

function offset

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

function origin_data

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

function size

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

function subview

inline MUDA_GENERIC auto muda::DenseVectorViewT::subview (
    int offset,
    int size
) const

function viewer

inline MUDA_GENERIC auto muda::DenseVectorViewT::viewer () const

Protected Attributes Documentation

variable m_data

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

variable m_descr

cusparseDnVecDescr_t muda::DenseVectorViewT< IsConst, T >::m_descr;

variable m_inc

int muda::DenseVectorViewT< IsConst, T >::m_inc;

variable m_offset

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

variable m_origin_size

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

variable m_size

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


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