Highly Efficient FFT for Exascale: HeFFTe v2.3
|
Struct to specialize to allow HeFFTe to recognize custom single precision complex types. More...
#include <heffte_utils.h>
Struct to specialize to allow HeFFTe to recognize custom single precision complex types.
Specializations of this struct will allow HeFFTe to recognize custom complex types that are ABI compatible with std::complex. In this context, ABI compatible means that it is safe to use reinterpret_cast between raw-arrays arrays of the two types.
scalar_type | indicates the type in question, if the type is ABI compatible with single precision complex std::complex<float> then the specialization must inherit from std::true_type, otherwise inherit from std::false_type. Note that the true/false types define a static const bool member called value that is correspondingly true/false. |
See std::is_zcomplex for specialization for double precision complex types, the ccomplex and zcomplex names are mimicking by the BLAS naming conventions, e.g., cgemm() and zgemm().
Example: