Skip to content

Class muda::COOVectorViewBase

template <bool IsConst, typename T>

ClassList > muda > COOVectorViewBase

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef CCOOVectorViewer< T > CViewer
typedef COOVectorViewBase< true, T > ConstView
typedef COOVectorViewBase< false, T > NonConstView
typedef COOVectorViewBase< IsConst, T > ThisView
typedef std::conditional_t< IsConst, CViewer, Viewer > ThisViewer
typedef COOVectorViewer< 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
MUDA_GENERIC COOVectorViewBase () = default
MUDA_GENERIC COOVectorViewBase (int size, int doublet_index_offset, int doublet_count, int total_doublet_count, auto_const_t< int > * indices, auto_const_t< T > * values, cusparseSpVecDescr_t descr)
MUDA_GENERIC auto as_const () const
MUDA_GENERIC auto cviewer () const
MUDA_GENERIC auto descr () const
MUDA_GENERIC auto doublet_count () const
MUDA_GENERIC auto doublet_index_offset () const
MUDA_GENERIC operator ConstView () const
MUDA_GENERIC auto subview (int offset, int count)
MUDA_GENERIC auto subview (int offset)
MUDA_GENERIC ConstView subview (int offset, int count) const
MUDA_GENERIC ConstView subview (int offset) const
MUDA_GENERIC auto total_doublet_count () const
MUDA_GENERIC auto vector_size () const
MUDA_GENERIC auto viewer ()

Protected Attributes

Type Name
cusparseSpVecDescr_t m_descr = = nullptr
int m_doublet_count = = 0
int m_doublet_index_offset = = 0
auto_const_t< int > * m_indices = = nullptr
int m_size = = 0
int m_total_doublet_count = = 0
auto_const_t< T > * m_values = = nullptr

Public Types Documentation

typedef CViewer

using muda::COOVectorViewBase< IsConst, T >::CViewer =  CCOOVectorViewer<T>;

typedef ConstView

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

typedef NonConstView

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

typedef ThisView

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

typedef ThisViewer

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

typedef Viewer

using muda::COOVectorViewBase< IsConst, T >::Viewer =  COOVectorViewer<T>;

Public Functions Documentation

function COOVectorViewBase [1/2]

MUDA_GENERIC muda::COOVectorViewBase::COOVectorViewBase () = default

function COOVectorViewBase [2/2]

inline MUDA_GENERIC muda::COOVectorViewBase::COOVectorViewBase (
    int size,
    int doublet_index_offset,
    int doublet_count,
    int total_doublet_count,
    auto_const_t< int > * indices,
    auto_const_t< T > * values,
    cusparseSpVecDescr_t descr
) 

function as_const

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

function cviewer

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

function descr

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

function doublet_count

inline MUDA_GENERIC auto muda::COOVectorViewBase::doublet_count () const

function doublet_index_offset

inline MUDA_GENERIC auto muda::COOVectorViewBase::doublet_index_offset () const

function operator ConstView

inline MUDA_GENERIC muda::COOVectorViewBase::operator ConstView () const

function subview [1/4]

inline MUDA_GENERIC auto muda::COOVectorViewBase::subview (
    int offset,
    int count
) 

function subview [2/4]

inline MUDA_GENERIC auto muda::COOVectorViewBase::subview (
    int offset
) 

function subview [3/4]

inline MUDA_GENERIC ConstView muda::COOVectorViewBase::subview (
    int offset,
    int count
) const

function subview [4/4]

inline MUDA_GENERIC ConstView muda::COOVectorViewBase::subview (
    int offset
) const

function total_doublet_count

inline MUDA_GENERIC auto muda::COOVectorViewBase::total_doublet_count () const

function vector_size

inline MUDA_GENERIC auto muda::COOVectorViewBase::vector_size () const

function viewer

inline MUDA_GENERIC auto muda::COOVectorViewBase::viewer () 

Protected Attributes Documentation

variable m_descr

cusparseSpVecDescr_t muda::COOVectorViewBase< IsConst, T >::m_descr;

variable m_doublet_count

int muda::COOVectorViewBase< IsConst, T >::m_doublet_count;

variable m_doublet_index_offset

int muda::COOVectorViewBase< IsConst, T >::m_doublet_index_offset;

variable m_indices

auto_const_t<int>* muda::COOVectorViewBase< IsConst, T >::m_indices;

variable m_size

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

variable m_total_doublet_count

int muda::COOVectorViewBase< IsConst, T >::m_total_doublet_count;

variable m_values

auto_const_t<T>* muda::COOVectorViewBase< IsConst, T >::m_values;


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