Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
uni20::cuda::CudaConjugatingPointerAccessor< Real > Struct Template Reference

Read-only CUDA accessor that conjugates persistent complex storage. More...

#include <cuda_accessor.hpp>

Public Types

using data_handle_type = element_type *
 
using element_type = uni20::complex< Real > const
 
using offset_policy = CudaConjugatingPointerAccessor
 
using offset_type = std::size_t
 
using reference = ::cuda::std::complex< Real >
 

Public Member Functions

UNI20_HOST_DEVICE constexpr reference access (data_handle_type handle, offset_type offset) const noexcept
 
UNI20_HOST_DEVICE constexpr data_handle_type offset (data_handle_type handle, offset_type offset) const noexcept
 

Detailed Description

template<class Real>
requires std::is_trivially_copyable_v<uni20::complex<Real>>
struct uni20::cuda::CudaConjugatingPointerAccessor< Real >

Read-only CUDA accessor that conjugates persistent complex storage.

Member Typedef Documentation

◆ data_handle_type

template<class Real >
using uni20::cuda::CudaConjugatingPointerAccessor< Real >::data_handle_type = element_type*

◆ element_type

template<class Real >
using uni20::cuda::CudaConjugatingPointerAccessor< Real >::element_type = uni20::complex<Real> const

◆ offset_policy

template<class Real >
using uni20::cuda::CudaConjugatingPointerAccessor< Real >::offset_policy = CudaConjugatingPointerAccessor

◆ offset_type

template<class Real >
using uni20::cuda::CudaConjugatingPointerAccessor< Real >::offset_type = std::size_t

◆ reference

template<class Real >
using uni20::cuda::CudaConjugatingPointerAccessor< Real >::reference = ::cuda::std::complex<Real>

Member Function Documentation

◆ access()

template<class Real >
UNI20_HOST_DEVICE constexpr reference uni20::cuda::CudaConjugatingPointerAccessor< Real >::access ( data_handle_type  handle,
offset_type  offset 
) const
inlineconstexprnoexcept

◆ offset()

template<class Real >
UNI20_HOST_DEVICE constexpr data_handle_type uni20::cuda::CudaConjugatingPointerAccessor< Real >::offset ( data_handle_type  handle,
offset_type  offset 
) const
inlineconstexprnoexcept

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