Skip to content

Class muda::BSRMatrixViewT

template <bool IsConst, typename Ty, int N>

ClassList > muda > BSRMatrixViewT

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef BSRMatrixViewT< true, Ty, N > ConstView
typedef BSRMatrixViewT< false, Ty, N > NonConstView
typedef BSRMatrixViewT< IsConst, Ty, N > ThisView
typedef std::conditional_t< N==1, Ty, Eigen::Matrix< Ty, N, N > > ValueT

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 BSRMatrixViewT () noexcept
MUDA_GENERIC BSRMatrixViewT (int row, int col, auto_const_t< int > * block_row_offsets, auto_const_t< int > * block_col_indices, auto_const_t< ValueT > * block_values, int non_zeros, cusparseSpMatDescr_t descr, cusparseMatDescr_t legacy_descr, bool trans) noexcept
MUDA_GENERIC BSRMatrixViewT (const BSRMatrixViewT< OtherIsConst, Ty, N > & other) noexcept
MUDA_GENERIC auto T () const
MUDA_GENERIC ConstView as_const () const
MUDA_GENERIC auto col_indices () const
MUDA_GENERIC auto cols () const
MUDA_GENERIC auto descr () const
MUDA_GENERIC auto is_trans () const
MUDA_GENERIC auto legacy_descr () const
MUDA_GENERIC auto non_zeros () const
MUDA_GENERIC auto row_offsets () const
MUDA_GENERIC auto rows () const
MUDA_GENERIC 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_zeros = = 0
int m_row = = 0
auto_const_t< int > * m_row_offsets = = nullptr
bool m_trans = = false
auto_const_t< ValueT > * m_values = = nullptr

Public Types Documentation

typedef ConstView

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

typedef NonConstView

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

typedef ThisView

using muda::BSRMatrixViewT< IsConst, Ty, N >::ThisView =  BSRMatrixViewT<IsConst, Ty, N>;

typedef ValueT

using muda::BSRMatrixViewT< IsConst, Ty, N >::ValueT =  std::conditional_t<N == 1, Ty, Eigen::Matrix<Ty, N, N>>;

Public Functions Documentation

function BSRMatrixViewT [2/4]

MUDA_GENERIC muda::BSRMatrixViewT::BSRMatrixViewT () noexcept

function BSRMatrixViewT [3/4]

inline MUDA_GENERIC muda::BSRMatrixViewT::BSRMatrixViewT (
    int row,
    int col,
    auto_const_t< int > * block_row_offsets,
    auto_const_t< int > * block_col_indices,
    auto_const_t< ValueT > * block_values,
    int non_zeros,
    cusparseSpMatDescr_t descr,
    cusparseMatDescr_t legacy_descr,
    bool trans
) noexcept

function BSRMatrixViewT [4/4]

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

function T

inline MUDA_GENERIC auto muda::BSRMatrixViewT::T () const

function as_const

inline MUDA_GENERIC ConstView muda::BSRMatrixViewT::as_const () const

function col_indices

inline MUDA_GENERIC auto muda::BSRMatrixViewT::col_indices () const

function cols

inline MUDA_GENERIC auto muda::BSRMatrixViewT::cols () const

function descr

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

function is_trans

inline MUDA_GENERIC auto muda::BSRMatrixViewT::is_trans () const

function legacy_descr

inline MUDA_GENERIC auto muda::BSRMatrixViewT::legacy_descr () const

function non_zeros

inline MUDA_GENERIC auto muda::BSRMatrixViewT::non_zeros () const

function row_offsets

inline MUDA_GENERIC auto muda::BSRMatrixViewT::row_offsets () const

function rows

inline MUDA_GENERIC auto muda::BSRMatrixViewT::rows () const

function values

inline MUDA_GENERIC auto muda::BSRMatrixViewT::values () const

Protected Attributes Documentation

variable m_col

int muda::BSRMatrixViewT< IsConst, Ty, N >::m_col;

variable m_col_indices

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

variable m_descr

cusparseSpMatDescr_t muda::BSRMatrixViewT< IsConst, Ty, N >::m_descr;

variable m_legacy_descr

cusparseMatDescr_t muda::BSRMatrixViewT< IsConst, Ty, N >::m_legacy_descr;

variable m_non_zeros

int muda::BSRMatrixViewT< IsConst, Ty, N >::m_non_zeros;

variable m_row

int muda::BSRMatrixViewT< IsConst, Ty, N >::m_row;

variable m_row_offsets

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

variable m_trans

bool muda::BSRMatrixViewT< IsConst, Ty, N >::m_trans;

variable m_values

auto_const_t<ValueT>* muda::BSRMatrixViewT< IsConst, Ty, N >::m_values;


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