Skip to content

Class muda::TripletMatrixViewT

template <bool IsConst, typename Ty, int N>

ClassList > muda > TripletMatrixViewT

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef Eigen::Matrix< Ty, N, N > BlockMatrix
typedef TripletMatrixViewT< true, Ty, N > ConstView
typedef TripletMatrixViewT< false, Ty, N > NonConstView
typedef TripletMatrixViewT< 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
bool IsConst = = IsConst_
bool IsNonConst = = !IsConst_

Public Functions

Type Name
MUDA_GENERIC TripletMatrixViewT () = default
MUDA_GENERIC TripletMatrixViewT (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 TripletMatrixViewT (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 TripletMatrixViewT (const TripletMatrixViewT< OtherIsConst, Ty, N > & other)
MUDA_GENERIC ConstView as_const () const
MUDA_GENERIC auto cviewer () const
MUDA_GENERIC auto extent () 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 () const

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::TripletMatrixViewT< IsConst, Ty, N >::BlockMatrix =  Eigen::Matrix<Ty, N, N>;

typedef ConstView

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

typedef NonConstView

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

typedef ThisView

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

Public Functions Documentation

function TripletMatrixViewT [2/5]

MUDA_GENERIC muda::TripletMatrixViewT::TripletMatrixViewT () = default

function TripletMatrixViewT [3/5]

inline MUDA_GENERIC muda::TripletMatrixViewT::TripletMatrixViewT (
    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 TripletMatrixViewT [4/5]

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

template<bool OtherIsConst>
inline MUDA_GENERIC muda::TripletMatrixViewT::TripletMatrixViewT (
    const TripletMatrixViewT < OtherIsConst, Ty, N > & other
) 

function as_const

inline MUDA_GENERIC ConstView muda::TripletMatrixViewT::as_const () const

function cviewer

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

function extent

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

function submatrix

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

function submatrix_offset

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

function subview [1/2]

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

function subview [2/2]

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

function total_block_cols

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

function total_block_rows

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

function total_extent

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

function total_triplet_count

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

function tripet_index_offset

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

function triplet_count

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

function viewer

inline MUDA_GENERIC auto muda::TripletMatrixViewT::viewer () const

Protected Attributes Documentation

variable m_block_col_indices

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

variable m_block_row_indices

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

variable m_block_values

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

variable m_submatrix_extent

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

variable m_submatrix_offset

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

variable m_total_block_cols

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

variable m_total_block_rows

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

variable m_total_triplet_count

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

variable m_triplet_count

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

variable m_triplet_index_offset

int muda::TripletMatrixViewT< 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