Skip to content

Class muda::COOMatrixViewBase

template <bool IsConst, typename Ty>

ClassList > muda > COOMatrixViewBase

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef COOMatrixViewBase< true, Ty > ConstView
typedef COOMatrixViewBase< false, Ty > NonConstView
typedef COOMatrixViewBase< 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
MUDA_GENERIC COOMatrixViewBase () = default
MUDA_GENERIC COOMatrixViewBase (int rows, int cols, int triplet_index_offset, int triplet_count, int total_triplet_count, int2 submatrix_offset, int2 submatrix_extent, auto_const_t< int > * row_indices, auto_const_t< int > * col_indices, auto_const_t< Ty > * values, cusparseSpMatDescr_t descr, cusparseMatDescr_t legacy_descr, bool trans)
MUDA_GENERIC COOMatrixViewBase (int rows, int cols, int total_triplet_count, auto_const_t< int > * row_indices, auto_const_t< int > * col_indices, auto_const_t< Ty > * values, cusparseSpMatDescr_t descr, cusparseMatDescr_t legacy_descr, bool trans)
MUDA_GENERIC auto as_const () const
auto_const_t< int > * block_col_indices ()
auto block_col_indices () const
auto block_cols () const
auto_const_t< int > * block_row_indices ()
auto block_row_indices () const
auto block_rows () const
auto_const_t< Ty > * block_values ()
auto block_values () const
MUDA_GENERIC auto cviewer () const
auto descr () const
auto is_trans () const
auto legacy_descr () const
MUDA_GENERIC operator ConstView () const
auto total_triplet_count () const
auto tripet_index_offset () const
auto triplet_count () const
MUDA_GENERIC auto viewer ()

Protected Attributes

Type Name
auto_const_t< int > * m_col_indices
int m_cols = = 0
cusparseSpMatDescr_t m_descr = = nullptr
cusparseMatDescr_t m_legacy_descr = = nullptr
auto_const_t< int > * m_row_indices
int m_rows = = 0
int2 m_submatrix_extent = = {0, 0}
int2 m_submatrix_offset = = {0, 0}
int m_total_triplet_count = = 0
bool m_trans = = false
int m_triplet_count = = 0
int m_triplet_index_offset = = 0
auto_const_t< Ty > * m_values

Public Types Documentation

typedef ConstView

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

typedef NonConstView

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

typedef ThisView

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

Public Functions Documentation

function COOMatrixViewBase [1/3]

MUDA_GENERIC muda::COOMatrixViewBase::COOMatrixViewBase () = default

function COOMatrixViewBase [2/3]

inline MUDA_GENERIC muda::COOMatrixViewBase::COOMatrixViewBase (
    int rows,
    int cols,
    int triplet_index_offset,
    int triplet_count,
    int total_triplet_count,
    int2 submatrix_offset,
    int2 submatrix_extent,
    auto_const_t< int > * row_indices,
    auto_const_t< int > * col_indices,
    auto_const_t< Ty > * values,
    cusparseSpMatDescr_t descr,
    cusparseMatDescr_t legacy_descr,
    bool trans
) 

function COOMatrixViewBase [3/3]

inline MUDA_GENERIC muda::COOMatrixViewBase::COOMatrixViewBase (
    int rows,
    int cols,
    int total_triplet_count,
    auto_const_t< int > * row_indices,
    auto_const_t< int > * col_indices,
    auto_const_t< Ty > * values,
    cusparseSpMatDescr_t descr,
    cusparseMatDescr_t legacy_descr,
    bool trans
) 

function as_const

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

function block_col_indices [1/2]

inline auto_const_t< int > * muda::COOMatrixViewBase::block_col_indices () 

function block_col_indices [2/2]

inline auto muda::COOMatrixViewBase::block_col_indices () const

function block_cols

inline auto muda::COOMatrixViewBase::block_cols () const

function block_row_indices [1/2]

inline auto_const_t< int > * muda::COOMatrixViewBase::block_row_indices () 

function block_row_indices [2/2]

inline auto muda::COOMatrixViewBase::block_row_indices () const

function block_rows

inline auto muda::COOMatrixViewBase::block_rows () const

function block_values [1/2]

inline auto_const_t< Ty > * muda::COOMatrixViewBase::block_values () 

function block_values [2/2]

inline auto muda::COOMatrixViewBase::block_values () const

function cviewer

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

function descr

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

function is_trans

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

function legacy_descr

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

function operator ConstView

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

function total_triplet_count

inline auto muda::COOMatrixViewBase::total_triplet_count () const

function tripet_index_offset

inline auto muda::COOMatrixViewBase::tripet_index_offset () const

function triplet_count

inline auto muda::COOMatrixViewBase::triplet_count () const

function viewer

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

Protected Attributes Documentation

variable m_col_indices

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

variable m_cols

int muda::COOMatrixViewBase< IsConst, Ty >::m_cols;

variable m_descr

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

variable m_legacy_descr

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

variable m_row_indices

auto_const_t<int>* muda::COOMatrixViewBase< IsConst, Ty >::m_row_indices;

variable m_rows

int muda::COOMatrixViewBase< IsConst, Ty >::m_rows;

variable m_submatrix_extent

int2 muda::COOMatrixViewBase< IsConst, Ty >::m_submatrix_extent;

variable m_submatrix_offset

int2 muda::COOMatrixViewBase< IsConst, Ty >::m_submatrix_offset;

variable m_total_triplet_count

int muda::COOMatrixViewBase< IsConst, Ty >::m_total_triplet_count;

variable m_trans

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

variable m_triplet_count

int muda::COOMatrixViewBase< IsConst, Ty >::m_triplet_count;

variable m_triplet_index_offset

int muda::COOMatrixViewBase< IsConst, Ty >::m_triplet_index_offset;

variable m_values

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


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