Skip to content

Class muda::CSRMatrixViewBase

template <bool IsConst, typename Ty>

ClassList > muda > CSRMatrixViewBase

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef CSRMatrixViewBase< true, Ty > ConstView
typedef CSRMatrixViewBase< false, Ty > NonConstView
typedef CSRMatrixViewBase< IsConst, Ty > ThisView

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
CSRMatrixViewBase () = default
CSRMatrixViewBase (int row, int col, auto_const_t< int > * row_offsets, auto_const_t< int > * col_indices, auto_const_t< Ty > * values, int non_zero, cusparseSpMatDescr_t descr, cusparseMatDescr_t legacy_descr, bool trans)
auto T () const
ConstView as_const () const
auto_const_t< int > * col_indices ()
auto col_indices () const
auto cols () const
auto descr () const
auto is_trans () const
auto legacy_descr () const
auto non_zeros () const
operator ConstView () const
auto_const_t< int > * row_offsets ()
auto row_offsets () const
auto rows () const
auto_const_t< Ty > * values ()
auto values () const

Protected Attributes

Type Name
int m_col = = 0
auto_const_t< int > * m_col_indices = = nullptr
cusparseSpMatDescr_t m_descr = = nullptr
cusparseMatDescr_t m_legacy_descr = = nullptr
int m_non_zero = = 0
int m_row = = 0
auto_const_t< int > * m_row_offsets = = nullptr
bool m_trans = = false
auto_const_t< Ty > * m_values = = nullptr

Public Types Documentation

typedef ConstView

using muda::CSRMatrixViewBase< IsConst, Ty >::ConstView =  CSRMatrixViewBase<true, Ty>;

typedef NonConstView

using muda::CSRMatrixViewBase< IsConst, Ty >::NonConstView =  CSRMatrixViewBase<false, Ty>;

typedef ThisView

using muda::CSRMatrixViewBase< IsConst, Ty >::ThisView =  CSRMatrixViewBase<IsConst, Ty>;

Public Functions Documentation

function CSRMatrixViewBase [1/2]

muda::CSRMatrixViewBase::CSRMatrixViewBase () = default

function CSRMatrixViewBase [2/2]

inline muda::CSRMatrixViewBase::CSRMatrixViewBase (
    int row,
    int col,
    auto_const_t< int > * row_offsets,
    auto_const_t< int > * col_indices,
    auto_const_t< Ty > * values,
    int non_zero,
    cusparseSpMatDescr_t descr,
    cusparseMatDescr_t legacy_descr,
    bool trans
) 

function T

inline auto muda::CSRMatrixViewBase::T () const

function as_const

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

function col_indices [1/2]

inline auto_const_t< int > * muda::CSRMatrixViewBase::col_indices () 

function col_indices [2/2]

inline auto muda::CSRMatrixViewBase::col_indices () const

function cols

inline auto muda::CSRMatrixViewBase::cols () const

function descr

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

function is_trans

inline auto muda::CSRMatrixViewBase::is_trans () const

function legacy_descr

inline auto muda::CSRMatrixViewBase::legacy_descr () const

function non_zeros

inline auto muda::CSRMatrixViewBase::non_zeros () const

function operator ConstView

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

function row_offsets [1/2]

inline auto_const_t< int > * muda::CSRMatrixViewBase::row_offsets () 

function row_offsets [2/2]

inline auto muda::CSRMatrixViewBase::row_offsets () const

function rows

inline auto muda::CSRMatrixViewBase::rows () const

function values [1/2]

inline auto_const_t< Ty > * muda::CSRMatrixViewBase::values () 

function values [2/2]

inline auto muda::CSRMatrixViewBase::values () const

Protected Attributes Documentation

variable m_col

int muda::CSRMatrixViewBase< IsConst, Ty >::m_col;

variable m_col_indices

auto_const_t<int>* muda::CSRMatrixViewBase< IsConst, Ty >::m_col_indices;

variable m_descr

cusparseSpMatDescr_t muda::CSRMatrixViewBase< IsConst, Ty >::m_descr;

variable m_legacy_descr

cusparseMatDescr_t muda::CSRMatrixViewBase< IsConst, Ty >::m_legacy_descr;

variable m_non_zero

int muda::CSRMatrixViewBase< IsConst, Ty >::m_non_zero;

variable m_row

int muda::CSRMatrixViewBase< IsConst, Ty >::m_row;

variable m_row_offsets

auto_const_t<int>* muda::CSRMatrixViewBase< IsConst, Ty >::m_row_offsets;

variable m_trans

bool muda::CSRMatrixViewBase< IsConst, Ty >::m_trans;

variable m_values

auto_const_t<Ty>* muda::CSRMatrixViewBase< IsConst, Ty >::m_values;


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