Skip to content

Class muda::DoubletVectorViewerBase

template <bool IsConst, typename T, int N>

ClassList > muda > DoubletVectorViewerBase

Inherits the following classes: muda::ViewerBase

Classes

Type Name
struct CDoublet

Public Types

Type Name
typedef DoubletVectorViewerBase< true, T, N > ConstViewer
typedef DoubletVectorViewerBase< false, T, N > NonConstViewer
typedef Eigen::Matrix< T, N, 1 > SegmentVector
typedef DoubletVectorViewerBase< 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 DoubletVectorViewerBase () = default
MUDA_GENERIC DoubletVectorViewerBase (int total_segment_count, int doublet_index_offset, int doublet_count, int total_doublet_count, int subvector_offset, int subvector_extent, auto_const_t< int > * segment_indices, auto_const_t< SegmentVector > * segment_values)
MUDA_GENERIC ConstViewer as_const () noexcept const
MUDA_GENERIC int doublet_count () noexcept const
MUDA_GENERIC operator ConstViewer () noexcept const
MUDA_GENERIC CDoublet operator() (int i) const
MUDA_GENERIC int total_doublet_count () noexcept 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
int m_doublet_count = = 0
int m_doublet_index_offset = = 0
auto_const_t< int > * m_segment_indices
auto_const_t< SegmentVector > * m_segment_values
int m_subvector_extent = = 0
int m_subvector_offset = = 0
int m_total_doublet_count = = 0
int m_total_segment_count = = 0

Protected Functions

Type Name
MUDA_INLINE MUDA_GENERIC void check_in_subvector (int i) 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 ConstViewer

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

typedef NonConstViewer

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

typedef SegmentVector

using muda::DoubletVectorViewerBase< IsConst, T, N >::SegmentVector =  Eigen::Matrix<T, N, 1>;

typedef ThisViewer

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

Public Functions Documentation

function DoubletVectorViewerBase [1/2]

MUDA_GENERIC muda::DoubletVectorViewerBase::DoubletVectorViewerBase () = default

function DoubletVectorViewerBase [2/2]

inline MUDA_GENERIC muda::DoubletVectorViewerBase::DoubletVectorViewerBase (
    int total_segment_count,
    int doublet_index_offset,
    int doublet_count,
    int total_doublet_count,
    int subvector_offset,
    int subvector_extent,
    auto_const_t< int > * segment_indices,
    auto_const_t< SegmentVector > * segment_values
) 

function as_const

inline MUDA_GENERIC ConstViewer muda::DoubletVectorViewerBase::as_const () noexcept const

function doublet_count

inline MUDA_GENERIC int muda::DoubletVectorViewerBase::doublet_count () noexcept const

function operator ConstViewer

inline MUDA_GENERIC muda::DoubletVectorViewerBase::operator ConstViewer () noexcept const

function operator()

inline MUDA_GENERIC CDoublet muda::DoubletVectorViewerBase::operator() (
    int i
) const

function total_doublet_count

inline MUDA_GENERIC int muda::DoubletVectorViewerBase::total_doublet_count () noexcept const

Protected Attributes Documentation

variable m_doublet_count

int muda::DoubletVectorViewerBase< IsConst, T, N >::m_doublet_count;

variable m_doublet_index_offset

int muda::DoubletVectorViewerBase< IsConst, T, N >::m_doublet_index_offset;

variable m_segment_indices

auto_const_t<int>* muda::DoubletVectorViewerBase< IsConst, T, N >::m_segment_indices;

variable m_segment_values

auto_const_t<SegmentVector>* muda::DoubletVectorViewerBase< IsConst, T, N >::m_segment_values;

variable m_subvector_extent

int muda::DoubletVectorViewerBase< IsConst, T, N >::m_subvector_extent;

variable m_subvector_offset

int muda::DoubletVectorViewerBase< IsConst, T, N >::m_subvector_offset;

variable m_total_doublet_count

int muda::DoubletVectorViewerBase< IsConst, T, N >::m_total_doublet_count;

variable m_total_segment_count

int muda::DoubletVectorViewerBase< IsConst, T, N >::m_total_segment_count;

Protected Functions Documentation

function check_in_subvector

inline MUDA_INLINE MUDA_GENERIC void muda::DoubletVectorViewerBase::check_in_subvector (
    int i
) noexcept const

function get_index

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


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