Skip to content

Class muda::COOMatrixViewT

template <bool IsConst, typename Ty>

ClassList > muda > COOMatrixViewT

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef COOMatrixViewT< true, Ty > ConstView
typedef COOMatrixViewT< false, Ty > NonConstView
typedef COOMatrixViewT< 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
bool IsConst = = IsConst_
bool IsNonConst = = !IsConst_

Public Functions

Type Name
MUDA_GENERIC COOMatrixViewT () = default
MUDA_GENERIC COOMatrixViewT (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 COOMatrixViewT (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 COOMatrixViewT (const COOMatrixViewT< OtherIsConst, Ty > & other)
MUDA_GENERIC auto as_const () const
auto col_indices () const
auto cols () const
MUDA_GENERIC auto cviewer () const
auto descr () const
auto is_trans () const
auto legacy_descr () const
auto row_indices () const
auto rows () const
auto total_triplet_count () const
auto tripet_index_offset () const
auto triplet_count () const
auto values () 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::COOMatrixViewT< IsConst, Ty >::ConstView =  COOMatrixViewT<true, Ty>;

typedef NonConstView

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

typedef ThisView

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

Public Functions Documentation

function COOMatrixViewT [2/5]

MUDA_GENERIC muda::COOMatrixViewT::COOMatrixViewT () = default

function COOMatrixViewT [3/5]

inline MUDA_GENERIC muda::COOMatrixViewT::COOMatrixViewT (
    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 COOMatrixViewT [4/5]

inline MUDA_GENERIC muda::COOMatrixViewT::COOMatrixViewT (
    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 COOMatrixViewT [5/5]

template<bool OtherIsConst>
inline MUDA_GENERIC muda::COOMatrixViewT::COOMatrixViewT (
    const COOMatrixViewT < OtherIsConst, Ty > & other
) 

function as_const

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

function col_indices

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

function cols

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

function cviewer

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

function descr

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

function is_trans

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

function legacy_descr

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

function row_indices

inline auto muda::COOMatrixViewT::row_indices () const

function rows

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

function total_triplet_count

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

function tripet_index_offset

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

function triplet_count

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

function values

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

function viewer

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

Protected Attributes Documentation

variable m_col_indices

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

variable m_cols

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

variable m_descr

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

variable m_legacy_descr

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

variable m_row_indices

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

variable m_rows

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

variable m_submatrix_extent

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

variable m_submatrix_offset

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

variable m_total_triplet_count

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

variable m_trans

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

variable m_triplet_count

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

variable m_triplet_index_offset

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

variable m_values

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


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