Skip to content

Class muda::BSRMatrixViewBase

template <bool IsConst, typename Ty, int N>

ClassList > muda > BSRMatrixViewBase

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef Eigen::Matrix< Ty, N, N > BlockMatrix
typedef BSRMatrixViewBase< true, Ty, N > ConstView
typedef BSRMatrixViewBase< false, Ty, N > NonConstView
typedef BSRMatrixViewBase< IsConst, Ty, N > 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
BSRMatrixViewBase () = default
BSRMatrixViewBase (int row, int col, auto_const_t< int > * block_row_offsets, auto_const_t< int > * block_col_indices, auto_const_t< BlockMatrix > * block_values, int non_zeros, cusparseSpMatDescr_t descr, cusparseMatDescr_t legacy_descr, bool trans)
auto T () const
ConstView 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_offsets ()
auto block_row_offsets () const
auto block_rows () const
auto_const_t< BlockMatrix > * block_values ()
auto block_values () const
auto descr () const
auto is_trans () const
auto legacy_descr () const
auto non_zero_blocks () const
operator ConstView () const

Protected Attributes

Type Name
auto_const_t< int > * m_block_col_indices = = nullptr
auto_const_t< int > * m_block_row_offsets = = nullptr
auto_const_t< BlockMatrix > * m_block_values = = nullptr
int m_col = = 0
cusparseSpMatDescr_t m_descr = = nullptr
cusparseMatDescr_t m_legacy_descr = = nullptr
int m_non_zeros = = 0
int m_row = = 0
bool m_trans = = false

Public Types Documentation

typedef BlockMatrix

using muda::BSRMatrixViewBase< IsConst, Ty, N >::BlockMatrix =  Eigen::Matrix<Ty, N, N>;

typedef ConstView

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

typedef NonConstView

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

typedef ThisView

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

Public Functions Documentation

function BSRMatrixViewBase [1/2]

muda::BSRMatrixViewBase::BSRMatrixViewBase () = default

function BSRMatrixViewBase [2/2]

inline muda::BSRMatrixViewBase::BSRMatrixViewBase (
    int row,
    int col,
    auto_const_t< int > * block_row_offsets,
    auto_const_t< int > * block_col_indices,
    auto_const_t< BlockMatrix > * block_values,
    int non_zeros,
    cusparseSpMatDescr_t descr,
    cusparseMatDescr_t legacy_descr,
    bool trans
) 

function T

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

function as_const

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

function block_col_indices [1/2]

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

function block_col_indices [2/2]

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

function block_cols

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

function block_row_offsets [1/2]

inline auto_const_t< int > * muda::BSRMatrixViewBase::block_row_offsets () 

function block_row_offsets [2/2]

inline auto muda::BSRMatrixViewBase::block_row_offsets () const

function block_rows

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

function block_values [1/2]

inline auto_const_t< BlockMatrix > * muda::BSRMatrixViewBase::block_values () 

function block_values [2/2]

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

function descr

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

function is_trans

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

function legacy_descr

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

function non_zero_blocks

inline auto muda::BSRMatrixViewBase::non_zero_blocks () const

function operator ConstView

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

Protected Attributes Documentation

variable m_block_col_indices

auto_const_t<int>* muda::BSRMatrixViewBase< IsConst, Ty, N >::m_block_col_indices;

variable m_block_row_offsets

auto_const_t<int>* muda::BSRMatrixViewBase< IsConst, Ty, N >::m_block_row_offsets;

variable m_block_values

auto_const_t<BlockMatrix>* muda::BSRMatrixViewBase< IsConst, Ty, N >::m_block_values;

variable m_col

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

variable m_descr

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

variable m_legacy_descr

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

variable m_non_zeros

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

variable m_row

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

variable m_trans

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


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