Skip to content

Class muda::DeviceBSRMatrix

template <typename Ty, int N>

ClassList > muda > DeviceBSRMatrix

Public Types

Type Name
typedef std::conditional_t< N==1, Ty, Eigen::Matrix< Ty, N, N > > ValueT

Public Static Attributes

Type Name
bool IsBlockMatrix = = (N > 1)

Public Functions

Type Name
DeviceBSRMatrix () = default
DeviceBSRMatrix (const DeviceBSRMatrix &)
DeviceBSRMatrix (DeviceBSRMatrix &&)
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 BSRMatrixView< Ty, N > ()
operator CBSRMatrixView< Ty, N > () const
DeviceBSRMatrix & operator= (const DeviceBSRMatrix &)
DeviceBSRMatrix & operator= (DeviceBSRMatrix &&)
void reserve (int non_zero_blocks)
void reserve_offsets (int size)
void reshape (int row, int col)
void resize (int non_zero_blocks)
auto row_offsets ()
auto row_offsets () const
auto rows () const
auto values ()
auto values () const
auto view ()
auto view () const
~DeviceBSRMatrix ()

Public Static Functions

Type Name
int block_size ()

Protected 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< ValueT > m_values

Public Types Documentation

typedef ValueT

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

Public Static Attributes Documentation

variable IsBlockMatrix

bool muda::DeviceBSRMatrix< Ty, N >::IsBlockMatrix;

Public Functions Documentation

function DeviceBSRMatrix [1/3]

muda::DeviceBSRMatrix::DeviceBSRMatrix () = default

function DeviceBSRMatrix [2/3]

muda::DeviceBSRMatrix::DeviceBSRMatrix (
    const DeviceBSRMatrix &
) 

function DeviceBSRMatrix [3/3]

muda::DeviceBSRMatrix::DeviceBSRMatrix (
    DeviceBSRMatrix &&
) 

function T [1/2]

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

function T [2/2]

inline auto muda::DeviceBSRMatrix::T () 

function clear

void muda::DeviceBSRMatrix::clear () 

function col_indices [1/2]

inline auto muda::DeviceBSRMatrix::col_indices () 

function col_indices [2/2]

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

function cols

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

function cview

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

function descr

cusparseSpMatDescr_t muda::DeviceBSRMatrix::descr () const

function legacy_descr

cusparseMatDescr_t muda::DeviceBSRMatrix::legacy_descr () const

function non_zeros

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

function operator BSRMatrixView< Ty, N >

inline muda::DeviceBSRMatrix::operator BSRMatrixView< Ty, N > () 

function operator CBSRMatrixView< Ty, N >

inline muda::DeviceBSRMatrix::operator CBSRMatrixView< Ty, N > () const

function operator=

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

function operator=

DeviceBSRMatrix & muda::DeviceBSRMatrix::operator= (
    DeviceBSRMatrix &&
) 

function reserve

void muda::DeviceBSRMatrix::reserve (
    int non_zero_blocks
) 

function reserve_offsets

void muda::DeviceBSRMatrix::reserve_offsets (
    int size
) 

function reshape

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

function resize

void muda::DeviceBSRMatrix::resize (
    int non_zero_blocks
) 

function row_offsets [1/2]

inline auto muda::DeviceBSRMatrix::row_offsets () 

function row_offsets [2/2]

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

function rows

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

function values [1/2]

inline auto muda::DeviceBSRMatrix::values () 

function values [2/2]

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

function view [1/2]

inline auto muda::DeviceBSRMatrix::view () 

function view [2/2]

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

function ~DeviceBSRMatrix

muda::DeviceBSRMatrix::~DeviceBSRMatrix () 

Public Static Functions Documentation

function block_size

static inline int muda::DeviceBSRMatrix::block_size () 

Protected Attributes Documentation

variable m_col

int muda::DeviceBSRMatrix< Ty, N >::m_col;

variable m_col_indices

muda::DeviceBuffer<int> muda::DeviceBSRMatrix< Ty, N >::m_col_indices;

variable m_descr

cusparseSpMatDescr_t muda::DeviceBSRMatrix< Ty, N >::m_descr;

variable m_legacy_descr

cusparseMatDescr_t muda::DeviceBSRMatrix< Ty, N >::m_legacy_descr;

variable m_row

int muda::DeviceBSRMatrix< Ty, N >::m_row;

variable m_row_offsets

muda::DeviceBuffer<int> muda::DeviceBSRMatrix< Ty, N >::m_row_offsets;

variable m_values

muda::DeviceBuffer<ValueT> muda::DeviceBSRMatrix< Ty, N >::m_values;

Friends Documentation

friend MatrixFormatConverter

template<typename U, int M>
class muda::DeviceBSRMatrix::MatrixFormatConverter (
    details::MatrixFormatConverter
) 


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