Skip to content

Class muda::TripletMatrixViewBase

template <bool IsConst, typename Ty, int N>

ClassList > muda > TripletMatrixViewBase

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef Eigen::Matrix< Ty, N, N > BlockMatrix
typedef TripletMatrixViewBase< true, Ty, N > ConstView
typedef TripletMatrixViewBase< false, Ty, N > NonConstView
typedef TripletMatrixViewBase< 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
MUDA_GENERIC TripletMatrixViewBase () = default
MUDA_GENERIC TripletMatrixViewBase (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 TripletMatrixViewBase (int total_block_rows, int total_block_cols, int total_triplet_count, auto_const_t< int > * block_row_indices, auto_const_t< int > * block_col_indices, auto_const_t< BlockMatrix > * block_values)
MUDA_GENERIC ConstView as_const () const
MUDA_GENERIC auto_const_t< int > * block_col_indices ()
MUDA_GENERIC auto_const_t< int > * block_row_indices ()
MUDA_GENERIC auto_const_t< BlockMatrix > * block_values ()
MUDA_GENERIC auto cviewer () const
MUDA_GENERIC auto extent () const
MUDA_GENERIC operator ConstView () const
MUDA_GENERIC auto submatrix (int2 offset, int2 extent) const
MUDA_GENERIC auto submatrix_offset () const
MUDA_GENERIC auto subview (int offset, int count) const
MUDA_GENERIC auto subview (int 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
MUDA_GENERIC auto viewer ()

Protected Attributes

Type Name
auto_const_t< int > * m_block_col_indices = = nullptr
auto_const_t< int > * m_block_row_indices = = nullptr
auto_const_t< BlockMatrix > * m_block_values = = nullptr
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

Public Types Documentation

typedef BlockMatrix

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

typedef ConstView

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

typedef NonConstView

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

typedef ThisView

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

Public Functions Documentation

function TripletMatrixViewBase [1/3]

MUDA_GENERIC muda::TripletMatrixViewBase::TripletMatrixViewBase () = default

function TripletMatrixViewBase [2/3]

inline MUDA_GENERIC muda::TripletMatrixViewBase::TripletMatrixViewBase (
    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 TripletMatrixViewBase [3/3]

inline MUDA_GENERIC muda::TripletMatrixViewBase::TripletMatrixViewBase (
    int total_block_rows,
    int total_block_cols,
    int total_triplet_count,
    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 ConstView muda::TripletMatrixViewBase::as_const () const

function block_col_indices

inline MUDA_GENERIC auto_const_t< int > * muda::TripletMatrixViewBase::block_col_indices () 

function block_row_indices

inline MUDA_GENERIC auto_const_t< int > * muda::TripletMatrixViewBase::block_row_indices () 

function block_values

inline MUDA_GENERIC auto_const_t< BlockMatrix > * muda::TripletMatrixViewBase::block_values () 

function cviewer

inline MUDA_GENERIC auto muda::TripletMatrixViewBase::cviewer () const

function extent

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

function operator ConstView

inline MUDA_GENERIC muda::TripletMatrixViewBase::operator ConstView () const

function submatrix

inline MUDA_GENERIC auto muda::TripletMatrixViewBase::submatrix (
    int2 offset,
    int2 extent
) const

function submatrix_offset

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

function subview [1/2]

inline MUDA_GENERIC auto muda::TripletMatrixViewBase::subview (
    int offset,
    int count
) const

function subview [2/2]

inline MUDA_GENERIC auto muda::TripletMatrixViewBase::subview (
    int offset
) const

function total_block_cols

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

function total_block_rows

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

function total_extent

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

function total_triplet_count

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

function tripet_index_offset

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

function triplet_count

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

function viewer

inline MUDA_GENERIC auto muda::TripletMatrixViewBase::viewer () 

Protected Attributes Documentation

variable m_block_col_indices

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

variable m_block_row_indices

auto_const_t<int>* muda::TripletMatrixViewBase< IsConst, Ty, N >::m_block_row_indices;

variable m_block_values

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

variable m_submatrix_extent

int2 muda::TripletMatrixViewBase< IsConst, Ty, N >::m_submatrix_extent;

variable m_submatrix_offset

int2 muda::TripletMatrixViewBase< IsConst, Ty, N >::m_submatrix_offset;

variable m_total_block_cols

int muda::TripletMatrixViewBase< IsConst, Ty, N >::m_total_block_cols;

variable m_total_block_rows

int muda::TripletMatrixViewBase< IsConst, Ty, N >::m_total_block_rows;

variable m_total_triplet_count

int muda::TripletMatrixViewBase< IsConst, Ty, N >::m_total_triplet_count;

variable m_triplet_count

int muda::TripletMatrixViewBase< IsConst, Ty, N >::m_triplet_count;

variable m_triplet_index_offset

int muda::TripletMatrixViewBase< IsConst, Ty, N >::m_triplet_index_offset;


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