Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
uni20::diagonal_data_handle< ElementType > Struct Template Reference

Handle for one compressed generalized diagonal value sequence. More...

#include <diagonal_accessor.hpp>

Public Member Functions

UNI20_HOST_DEVICE constexpr diagonal_data_handle () noexcept=default
 
template<class OtherElementType >
requires std::convertible_to<OtherElementType*, ElementType*>
UNI20_HOST_DEVICE constexpr diagonal_data_handle (diagonal_data_handle< OtherElementType > const &other) noexcept
 
UNI20_HOST_DEVICE constexpr diagonal_data_handle (ElementType *data, std::size_t base_offset) noexcept
 

Public Attributes

std::size_t base_offset = 0
 
ElementType * data = nullptr
 

Friends

UNI20_HOST_DEVICE constexpr bool operator== (diagonal_data_handle const &, diagonal_data_handle const &)=default
 

Detailed Description

template<class ElementType>
struct uni20::diagonal_data_handle< ElementType >

Handle for one compressed generalized diagonal value sequence.

Template Parameters
ElementTypeStored element type, possibly const-qualified.

Constructor & Destructor Documentation

◆ diagonal_data_handle() [1/3]

template<class ElementType >
UNI20_HOST_DEVICE constexpr uni20::diagonal_data_handle< ElementType >::diagonal_data_handle ( )
constexprdefaultnoexcept

◆ diagonal_data_handle() [2/3]

template<class ElementType >
UNI20_HOST_DEVICE constexpr uni20::diagonal_data_handle< ElementType >::diagonal_data_handle ( ElementType *  data,
std::size_t  base_offset 
)
inlineconstexprnoexcept

◆ diagonal_data_handle() [3/3]

template<class ElementType >
template<class OtherElementType >
requires std::convertible_to<OtherElementType*, ElementType*>
UNI20_HOST_DEVICE constexpr uni20::diagonal_data_handle< ElementType >::diagonal_data_handle ( diagonal_data_handle< OtherElementType > const &  other)
inlineconstexprnoexcept

Friends And Related Symbol Documentation

◆ operator==

template<class ElementType >
UNI20_HOST_DEVICE constexpr bool operator== ( diagonal_data_handle< ElementType > const &  ,
diagonal_data_handle< ElementType > const &   
)
friend

Member Data Documentation

◆ base_offset

template<class ElementType >
std::size_t uni20::diagonal_data_handle< ElementType >::base_offset = 0

◆ data

template<class ElementType >
ElementType* uni20::diagonal_data_handle< ElementType >::data = nullptr

The documentation for this struct was generated from the following file: