Skip to content

Class muda::TripletMatrixViewerBase

template <bool IsConst, typename T, int N>

ClassList > muda > TripletMatrixViewerBase

Inherits the following classes: muda::ViewerBase

Classes

Type Name
struct CTriplet

Public Types

Type Name
typedef Eigen::Matrix< T, N, N > BlockMatrix
typedef TripletMatrixViewerBase< true, T, N > ConstViewer
typedef TripletMatrixViewerBase< false, T, N > NonConstViewer
typedef TripletMatrixViewerBase< IsConst, T, N > ThisViewer

Public Static Attributes inherited from muda::ViewerBase

See muda::ViewerBase

Type Name
constexpr bool IsConst = = IsConst_
constexpr bool IsNonConst = = !IsConst_

Public Functions

Type Name
MUDA_GENERIC TripletMatrixViewerBase () = default
MUDA_GENERIC TripletMatrixViewerBase (int total_block_rows, int total_block_cols, int triplet_index_offset, int triplet_count, int total_triplet_count, int2 submatrix_offset, int2 submatrix_extent, auto_const_t< int > * block_row_indices, auto_const_t< int > * block_col_indices, auto_const_t< BlockMatrix > * block_values)
MUDA_GENERIC ConstViewer as_const () const
MUDA_GENERIC auto extent () const
MUDA_GENERIC operator ConstViewer () const
MUDA_GENERIC CTriplet operator() (int i) const
MUDA_GENERIC auto submatrix_offset () const
MUDA_GENERIC auto total_block_cols () const
MUDA_GENERIC auto total_block_rows () const
MUDA_GENERIC auto total_extent () const
MUDA_GENERIC auto total_triplet_count () const
MUDA_GENERIC auto tripet_index_offset () const
MUDA_GENERIC auto triplet_count () const

Public Functions inherited from muda::ViewerBase

See muda::ViewerBase

Type Name
MUDA_GENERIC ViewerBase ()
ViewerBase (const ViewerBase &) = default
ViewerBase (ViewerBase &&) = default
MUDA_INLINE MUDA_GENERIC void copy_label (const ViewerBase & other)
MUDA_GENERIC const char * kernel_file () const
MUDA_GENERIC int kernel_line () const
MUDA_GENERIC const char * kernel_name () const
MUDA_GENERIC const char * name () const
ViewerBase & operator= (const ViewerBase &) = default
ViewerBase & operator= (ViewerBase &&) = default

Protected Types inherited from muda::ViewerBase

See muda::ViewerBase

Type Name
typedef std::conditional_t< IsConst, const T, T > auto_const_t
typedef std::enable_if_t< IsNonConst, T > non_const_enable_t

Protected Attributes

Type Name
auto_const_t< int > * m_block_col_indices
auto_const_t< int > * m_block_row_indices
auto_const_t< BlockMatrix > * m_block_values
int2 m_submatrix_extent = = {0, 0}
int2 m_submatrix_offset = = {0, 0}
int m_total_block_cols = = 0
int m_total_block_rows = = 0
int m_total_triplet_count = = 0
int m_triplet_count = = 0
int m_triplet_index_offset = = 0

Protected Functions

Type Name
MUDA_INLINE MUDA_GENERIC void check_in_submatrix (int i, int j) noexcept const
MUDA_INLINE MUDA_GENERIC int get_index (int i) noexcept const

Protected Functions inherited from muda::ViewerBase

See muda::ViewerBase

Type Name
MUDA_INLINE MUDA_HOST void name (const char * n)
MUDA_INLINE MUDA_GENERIC void name (details::StringPointer pointer)

Public Types Documentation

typedef BlockMatrix

using muda::TripletMatrixViewerBase< IsConst, T, N >::BlockMatrix =  Eigen::Matrix<T, N, N>;

typedef ConstViewer

using muda::TripletMatrixViewerBase< IsConst, T, N >::ConstViewer =  TripletMatrixViewerBase<true, T, N>;

typedef NonConstViewer

using muda::TripletMatrixViewerBase< IsConst, T, N >::NonConstViewer =  TripletMatrixViewerBase<false, T, N>;

typedef ThisViewer

using muda::TripletMatrixViewerBase< IsConst, T, N >::ThisViewer =  TripletMatrixViewerBase<IsConst, T, N>;

Public Functions Documentation

function TripletMatrixViewerBase [1/2]

MUDA_GENERIC muda::TripletMatrixViewerBase::TripletMatrixViewerBase () = default

function TripletMatrixViewerBase [2/2]

inline MUDA_GENERIC muda::TripletMatrixViewerBase::TripletMatrixViewerBase (
    int total_block_rows,
    int total_block_cols,
    int triplet_index_offset,
    int triplet_count,
    int total_triplet_count,
    int2 submatrix_offset,
    int2 submatrix_extent,
    auto_const_t< int > * block_row_indices,
    auto_const_t< int > * block_col_indices,
    auto_const_t< BlockMatrix > * block_values
) 

function as_const

inline MUDA_GENERIC ConstViewer muda::TripletMatrixViewerBase::as_const () const

function extent

inline MUDA_GENERIC auto muda::TripletMatrixViewerBase::extent () const

function operator ConstViewer

inline MUDA_GENERIC muda::TripletMatrixViewerBase::operator ConstViewer () const

function operator()

inline MUDA_GENERIC CTriplet muda::TripletMatrixViewerBase::operator() (
    int i
) const

function submatrix_offset

inline MUDA_GENERIC auto muda::TripletMatrixViewerBase::submatrix_offset () const

function total_block_cols

inline MUDA_GENERIC auto muda::TripletMatrixViewerBase::total_block_cols () const

function total_block_rows

inline MUDA_GENERIC auto muda::TripletMatrixViewerBase::total_block_rows () const

function total_extent

inline MUDA_GENERIC auto muda::TripletMatrixViewerBase::total_extent () const

function total_triplet_count

inline MUDA_GENERIC auto muda::TripletMatrixViewerBase::total_triplet_count () const

function tripet_index_offset

inline MUDA_GENERIC auto muda::TripletMatrixViewerBase::tripet_index_offset () const

function triplet_count

inline MUDA_GENERIC auto muda::TripletMatrixViewerBase::triplet_count () const

Protected Attributes Documentation

variable m_block_col_indices

auto_const_t<int>* muda::TripletMatrixViewerBase< IsConst, T, N >::m_block_col_indices;

variable m_block_row_indices

auto_const_t<int>* muda::TripletMatrixViewerBase< IsConst, T, N >::m_block_row_indices;

variable m_block_values

auto_const_t<BlockMatrix>* muda::TripletMatrixViewerBase< IsConst, T, N >::m_block_values;

variable m_submatrix_extent

int2 muda::TripletMatrixViewerBase< IsConst, T, N >::m_submatrix_extent;

variable m_submatrix_offset

int2 muda::TripletMatrixViewerBase< IsConst, T, N >::m_submatrix_offset;

variable m_total_block_cols

int muda::TripletMatrixViewerBase< IsConst, T, N >::m_total_block_cols;

variable m_total_block_rows

int muda::TripletMatrixViewerBase< IsConst, T, N >::m_total_block_rows;

variable m_total_triplet_count

int muda::TripletMatrixViewerBase< IsConst, T, N >::m_total_triplet_count;

variable m_triplet_count

int muda::TripletMatrixViewerBase< IsConst, T, N >::m_triplet_count;

variable m_triplet_index_offset

int muda::TripletMatrixViewerBase< IsConst, T, N >::m_triplet_index_offset;

Protected Functions Documentation

function check_in_submatrix

inline MUDA_INLINE MUDA_GENERIC void muda::TripletMatrixViewerBase::check_in_submatrix (
    int i,
    int j
) noexcept const

function get_index

inline MUDA_INLINE MUDA_GENERIC int muda::TripletMatrixViewerBase::get_index (
    int i
) noexcept const


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