Skip to content

Class muda::DenseVectorViewBase

template <bool IsConst, typename T>

ClassList > muda > DenseVectorViewBase

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef BufferView< T > BufferView
typedef CBufferView< T > CBufferView
typedef CDenseVectorViewer< T > CViewer
typedef DenseVectorViewBase< true, T > ConstView
typedef DenseVectorViewBase< false, T > NonConstView
typedef std::conditional_t< IsConst, CBufferView, BufferView > ThisBufferView
typedef DenseVectorViewBase< 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
constexpr bool IsConst = = IsConst_
constexpr bool IsNonConst = = !IsConst_

Public Functions

Type Name
DenseVectorViewBase () = default
DenseVectorViewBase (auto_const_t< T > * data, cusparseDnVecDescr_t descr, int offset, int inc, int size, int origin_size)
ConstView as_const () const
auto buffer_view ()
CBufferView buffer_view () const
auto cviewer () const
auto data ()
auto data () const
auto descr () const
auto inc () const
auto offset () const
operator ConstView () const
auto origin_data ()
auto origin_data () const
auto size () const
auto subview (int offset, int size)
auto subview (int offset, int size) const
auto viewer ()

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::DenseVectorViewBase< IsConst, T >::BufferView =  BufferView<T>;

typedef CBufferView

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

typedef CViewer

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

typedef ConstView

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

typedef NonConstView

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

typedef ThisBufferView

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

typedef ThisView

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

typedef ThisViewer

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

typedef Viewer

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

Public Functions Documentation

function DenseVectorViewBase [1/2]

muda::DenseVectorViewBase::DenseVectorViewBase () = default

function DenseVectorViewBase [2/2]

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

function as_const

inline ConstView muda::DenseVectorViewBase::as_const () const

function buffer_view [1/2]

inline auto muda::DenseVectorViewBase::buffer_view () 

function buffer_view [2/2]

inline CBufferView muda::DenseVectorViewBase::buffer_view () const

function cviewer

inline auto muda::DenseVectorViewBase::cviewer () const

function data [1/2]

inline auto muda::DenseVectorViewBase::data () 

function data [2/2]

inline auto muda::DenseVectorViewBase::data () const

function descr

inline auto muda::DenseVectorViewBase::descr () const

function inc

inline auto muda::DenseVectorViewBase::inc () const

function offset

inline auto muda::DenseVectorViewBase::offset () const

function operator ConstView

inline muda::DenseVectorViewBase::operator ConstView () const

function origin_data [1/2]

inline auto muda::DenseVectorViewBase::origin_data () 

function origin_data [2/2]

inline auto muda::DenseVectorViewBase::origin_data () const

function size

inline auto muda::DenseVectorViewBase::size () const

function subview [1/2]

inline auto muda::DenseVectorViewBase::subview (
    int offset,
    int size
) 

function subview [2/2]

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

function viewer

inline auto muda::DenseVectorViewBase::viewer () 

Protected Attributes Documentation

variable m_data

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

variable m_descr

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

variable m_inc

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

variable m_offset

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

variable m_origin_size

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

variable m_size

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


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