Skip to content

Class muda::DeviceCSRMatrix

template <typename Ty>

ClassList > muda > DeviceCSRMatrix

Public Attributes

Type Name
int m_col = = 0
muda::DeviceBuffer< int > m_col_indices
cusparseSpMatDescr_t m_descr = = nullptr
cusparseMatDescr_t m_legacy_descr = = nullptr
int m_row = = 0
muda::DeviceBuffer< int > m_row_offsets
muda::DeviceBuffer< Ty > m_values

Public Functions

Type Name
DeviceCSRMatrix () = default
DeviceCSRMatrix (const DeviceCSRMatrix &)
DeviceCSRMatrix (DeviceCSRMatrix &&) noexcept
auto T () const
auto T ()
void clear ()
auto col_indices ()
auto col_indices () const
auto cols () const
auto cview () const
cusparseSpMatDescr_t descr () const
cusparseMatDescr_t legacy_descr () const
auto non_zeros () const
operator CCSRMatrixView< Ty > () const
operator CSRMatrixView< Ty > ()
DeviceCSRMatrix & operator= (const DeviceCSRMatrix &)
DeviceCSRMatrix & operator= (DeviceCSRMatrix &&) noexcept
void reserve (int non_zeros)
void reshape (int row, int col)
auto row_offsets ()
auto row_offsets () const
auto rows () const
auto values ()
auto values () const
auto view ()
auto view () const
~DeviceCSRMatrix ()

Public Attributes Documentation

variable m_col

int muda::DeviceCSRMatrix< Ty >::m_col;

variable m_col_indices

muda::DeviceBuffer<int> muda::DeviceCSRMatrix< Ty >::m_col_indices;

variable m_descr

cusparseSpMatDescr_t muda::DeviceCSRMatrix< Ty >::m_descr;

variable m_legacy_descr

cusparseMatDescr_t muda::DeviceCSRMatrix< Ty >::m_legacy_descr;

variable m_row

int muda::DeviceCSRMatrix< Ty >::m_row;

variable m_row_offsets

muda::DeviceBuffer<int> muda::DeviceCSRMatrix< Ty >::m_row_offsets;

variable m_values

muda::DeviceBuffer<Ty> muda::DeviceCSRMatrix< Ty >::m_values;

Public Functions Documentation

function DeviceCSRMatrix [1/3]

muda::DeviceCSRMatrix::DeviceCSRMatrix () = default

function DeviceCSRMatrix [2/3]

muda::DeviceCSRMatrix::DeviceCSRMatrix (
    const DeviceCSRMatrix &
) 

function DeviceCSRMatrix [3/3]

muda::DeviceCSRMatrix::DeviceCSRMatrix (
    DeviceCSRMatrix &&
) noexcept

function T [1/2]

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

function T [2/2]

inline auto muda::DeviceCSRMatrix::T () 

function clear

void muda::DeviceCSRMatrix::clear () 

function col_indices [1/2]

inline auto muda::DeviceCSRMatrix::col_indices () 

function col_indices [2/2]

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

function cols

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

function cview

inline auto muda::DeviceCSRMatrix::cview () const

function descr

cusparseSpMatDescr_t muda::DeviceCSRMatrix::descr () const

function legacy_descr

cusparseMatDescr_t muda::DeviceCSRMatrix::legacy_descr () const

function non_zeros

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

function operator CCSRMatrixView< Ty >

inline muda::DeviceCSRMatrix::operator CCSRMatrixView< Ty > () const

function operator CSRMatrixView< Ty >

inline muda::DeviceCSRMatrix::operator CSRMatrixView< Ty > () 

function operator=

DeviceCSRMatrix & muda::DeviceCSRMatrix::operator= (
    const DeviceCSRMatrix &
) 

function operator=

DeviceCSRMatrix & muda::DeviceCSRMatrix::operator= (
    DeviceCSRMatrix &&
) noexcept

function reserve

void muda::DeviceCSRMatrix::reserve (
    int non_zeros
) 

function reshape

void muda::DeviceCSRMatrix::reshape (
    int row,
    int col
) 

function row_offsets [1/2]

inline auto muda::DeviceCSRMatrix::row_offsets () 

function row_offsets [2/2]

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

function rows

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

function values [1/2]

inline auto muda::DeviceCSRMatrix::values () 

function values [2/2]

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

function view [1/2]

inline auto muda::DeviceCSRMatrix::view () 

function view [2/2]

inline auto muda::DeviceCSRMatrix::view () const

function ~DeviceCSRMatrix

muda::DeviceCSRMatrix::~DeviceCSRMatrix () 

Friends Documentation

friend MatrixFormatConverter

template<typename T, int N>
class muda::DeviceCSRMatrix::MatrixFormatConverter (
    details::MatrixFormatConverter
) 


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