SyTen
cuda_dynarray.h File Reference

A runtime fixed-size array type backed by CUDA storage if available. More...

+ Include dependency graph for cuda_dynarray.h:
+ This graph shows which files directly or indirectly include this file:

Classes

class  syten::Cuda::CudaDynArray< Type >
 The CUDA-equivalent of DynArray. More...
 

Namespaces

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

Typedefs

template<typename Type >
using syten::CudaDynArray = Cuda::CudaDynArray< Type >
 Convenience typedef, see Cuda::CudaDynArray for details. More...
 

Functions

void syten::Cuda::addScaled (CudaDynArray< double > &a, CudaDynArray< double > const &b, double const factor)
 Adds b scaled by factor to a. More...
 
void syten::Cuda::addScaled (CudaDynArray< float > &a, CudaDynArray< float > const &b, float const factor)
 Adds b scaled by factor to a. More...
 
void syten::Cuda::addScaled (CudaDynArray< std::complex< double > > &a, CudaDynArray< std::complex< double > > const &b, std::complex< double > const factor)
 Adds b scaled by factor to a. More...
 
void syten::Cuda::addScaled (CudaDynArray< std::complex< float > > &a, CudaDynArray< std::complex< float > > const &b, std::complex< float > const factor)
 Adds b scaled by factor to a. More...
 
double syten::Cuda::dot (CudaDynArray< double > const &a, CudaDynArray< double > const &b, Conj const conj=Conj::n())
 Returns the scalar product between two CudaDynArray objects. More...
 
float syten::Cuda::dot (CudaDynArray< float > const &a, CudaDynArray< float > const &b, Conj const conj=Conj::n())
 Returns the scalar product between two CudaDynArray objects. More...
 
std::complex< double > syten::Cuda::dot (CudaDynArray< std::complex< double > > const &a, CudaDynArray< std::complex< double > > const &b, Conj const conj=Conj::n())
 Returns the scalar product between two CudaDynArray objects. More...
 
std::complex< float > syten::Cuda::dot (CudaDynArray< std::complex< float > > const &a, CudaDynArray< std::complex< float > > const &b, Conj const conj=Conj::n())
 Returns the scalar product between two CudaDynArray objects. More...
 
void syten::Cuda::scale (CudaDynArray< double > &a, double const f)
 Scales the entries of a by f. More...
 
void syten::Cuda::scale (CudaDynArray< float > &a, float const f)
 Scales the entries of a by f. More...
 
void syten::Cuda::scale (CudaDynArray< std::complex< double > > &a, double const f)
 Scales the entries of a by f. More...
 
void syten::Cuda::scale (CudaDynArray< std::complex< double > > &a, std::complex< double > const &f)
 Scales the entries of a by f. More...
 
void syten::Cuda::scale (CudaDynArray< std::complex< float > > &a, float const f)
 Scales the entries of a by f. More...
 
void syten::Cuda::scale (CudaDynArray< std::complex< float > > &a, std::complex< float > const f)
 Scales the entries of a by f. More...
 

Detailed Description

A runtime fixed-size array type backed by CUDA storage if available.