SyTen
cuda_span.cpp File Reference

Implementation for inc/util/cuda_span.h More...

+ Include dependency graph for cuda_span.cpp:

Namespaces

namespace  syten
 Syten namespace.
 
namespace  syten::Cuda
 Support functions (memory allocation etc.) for CUDA-based GPUs.
 

Functions

void syten::Cuda::conj_copy (CudaConstSpan< double > src, CudaMutSpan< double > dst)
 Copies all data from src to dst (no conjugation takes places as double is real). More...
 
void syten::Cuda::conj_copy (CudaConstSpan< float > src, CudaMutSpan< float > dst)
 Copies all data from src to dst (no conjugation takes places as float is real). More...
 
void syten::Cuda::conj_copy (CudaConstSpan< std::complex< double > > src, CudaMutSpan< std::complex< double > > dst)
 Copies all data from src to dst while complex-conjugating every value. More...
 
void syten::Cuda::conj_copy (CudaConstSpan< std::complex< float > > src, CudaMutSpan< std::complex< float > > dst)
 Copies all data from src to dst while complex-conjugating every value. More...
 
std::size_t syten::Cuda::max_element_idx (CudaConstSpan< double > inp)
 Returns the 0-based index of the absolute-value maximal element of the range. More...
 
std::size_t syten::Cuda::max_element_idx (CudaConstSpan< float > inp)
 Returns the 0-based index of the absolute-value maximal element of the range. More...
 
std::size_t syten::Cuda::max_element_idx (CudaConstSpan< std::complex< double > > inp)
 Returns the 0-based index of the absolute-value maximal element of the range. More...
 
std::size_t syten::Cuda::max_element_idx (CudaConstSpan< std::complex< float > > inp)
 Returns the 0-based index of the absolute-value maximal element of the range. More...
 

Detailed Description

Implementation for inc/util/cuda_span.h