cuLite v0.3.1
A lite CUDA C++ Interface
Loading...
Searching...
No Matches
scalar.hpp File Reference

Typedefs

using culite::real4_t = float
 Single precision real.
using culite::real_t = double
 Double precision real.
using culite::complex8_t = cuFloatComplex
 Single precision complex.
using culite::complex_t = cuDoubleComplex
 Double precision complex.

Functions

CULITE_HOST CULITE_DEVICE complex_t culite::makeComplex (const real_t re, const real_t im=0.0)
 Constructs a complex number from the associated real type.
CULITE_HOST CULITE_DEVICE complex8_t culite::makeComplex (const real4_t re, const real4_t im=0.0f)
 Constructs a complex number from the associated real type.
template<typename T_Scalar>
CULITE_HOST CULITE_DEVICE T_Scalar culite::makeScalar (const typename TypeTraits< T_Scalar >::real_type v)
 Converts a real value to a scalar type.