Skip to content

Class muda::DeviceTripletMatrix

template <typename T, int N>

ClassList > muda > DeviceTripletMatrix

Inherited by the following classes: muda::DeviceBCOOMatrix, muda::DeviceBCOOMatrix, muda::DeviceBCOOMatrix

Public Types

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

Public Static Attributes

Type Name
bool IsBlockMatrix = = (N > 1)

Public Functions

Type Name
DeviceTripletMatrix () = default
DeviceTripletMatrix (const DeviceTripletMatrix &) = default
DeviceTripletMatrix (DeviceTripletMatrix &&) = default
void clear ()
auto col_indices ()
auto col_indices () const
auto cols () const
auto cview () const
auto cviewer () const
operator CTripletMatrixView< T, N > () const
operator TripletMatrixView< T, N > ()
DeviceTripletMatrix & operator= (const DeviceTripletMatrix &) = default
DeviceTripletMatrix & operator= (DeviceTripletMatrix &&) = default
void reserve_triplets (size_t nonzero_count)
void reshape (int row, int col)
void resize (int row, int col, size_t nonzero_count)
void resize_triplets (size_t nonzero_count)
auto row_indices ()
auto row_indices () const
auto rows () const
auto triplet_capacity () const
auto triplet_count () const
auto values ()
auto values () const
auto view ()
auto view () const
auto viewer ()
~DeviceTripletMatrix () = default

Public Static Functions

Type Name
int block_dim ()

Protected Attributes

Type Name
DeviceBuffer< int > m_col_indices
int m_cols = = 0
DeviceBuffer< int > m_row_indices
int m_rows = = 0
DeviceBuffer< ValueT > m_values

Public Types Documentation

typedef ValueT

using muda::DeviceTripletMatrix< T, N >::ValueT =  std::conditional_t<N == 1, T, Eigen::Matrix<T, N, N>>;

Public Static Attributes Documentation

variable IsBlockMatrix

bool muda::DeviceTripletMatrix< T, N >::IsBlockMatrix;

Public Functions Documentation

function DeviceTripletMatrix [1/3]

muda::DeviceTripletMatrix::DeviceTripletMatrix () = default

function DeviceTripletMatrix [2/3]

muda::DeviceTripletMatrix::DeviceTripletMatrix (
    const DeviceTripletMatrix &
) = default

function DeviceTripletMatrix [3/3]

muda::DeviceTripletMatrix::DeviceTripletMatrix (
    DeviceTripletMatrix &&
) = default

function clear

inline void muda::DeviceTripletMatrix::clear () 

function col_indices [1/2]

inline auto muda::DeviceTripletMatrix::col_indices () 

function col_indices [2/2]

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

function cols

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

function cview

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

function cviewer

inline auto muda::DeviceTripletMatrix::cviewer () const

function operator CTripletMatrixView< T, N >

inline muda::DeviceTripletMatrix::operator CTripletMatrixView< T, N > () const

function operator TripletMatrixView< T, N >

inline muda::DeviceTripletMatrix::operator TripletMatrixView< T, N > () 

function operator=

DeviceTripletMatrix & muda::DeviceTripletMatrix::operator= (
    const DeviceTripletMatrix &
) = default

function operator=

DeviceTripletMatrix & muda::DeviceTripletMatrix::operator= (
    DeviceTripletMatrix &&
) = default

function reserve_triplets

inline void muda::DeviceTripletMatrix::reserve_triplets (
    size_t nonzero_count
) 

function reshape

inline void muda::DeviceTripletMatrix::reshape (
    int row,
    int col
) 

function resize

inline void muda::DeviceTripletMatrix::resize (
    int row,
    int col,
    size_t nonzero_count
) 

function resize_triplets

inline void muda::DeviceTripletMatrix::resize_triplets (
    size_t nonzero_count
) 

function row_indices [1/2]

inline auto muda::DeviceTripletMatrix::row_indices () 

function row_indices [2/2]

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

function rows

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

function triplet_capacity

inline auto muda::DeviceTripletMatrix::triplet_capacity () const

function triplet_count

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

function values [1/2]

inline auto muda::DeviceTripletMatrix::values () 

function values [2/2]

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

function view [1/2]

inline auto muda::DeviceTripletMatrix::view () 

function view [2/2]

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

function viewer

inline auto muda::DeviceTripletMatrix::viewer () 

function ~DeviceTripletMatrix

muda::DeviceTripletMatrix::~DeviceTripletMatrix () = default

Public Static Functions Documentation

function block_dim

static inline int muda::DeviceTripletMatrix::block_dim () 

Protected Attributes Documentation

variable m_col_indices

DeviceBuffer<int> muda::DeviceTripletMatrix< T, N >::m_col_indices;

variable m_cols

int muda::DeviceTripletMatrix< T, N >::m_cols;

variable m_row_indices

DeviceBuffer<int> muda::DeviceTripletMatrix< T, N >::m_row_indices;

variable m_rows

int muda::DeviceTripletMatrix< T, N >::m_rows;

variable m_values

DeviceBuffer<ValueT> muda::DeviceTripletMatrix< T, N >::m_values;

Friends Documentation

friend MatrixFormatConverter

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


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