1#ifndef dftefeDataTypeOverloads_h
2#define dftefeDataTypeOverloads_h
36 abs_(std::complex<double> a)
42 abs_(std::complex<float> a)
74 return a.real() * a.real() + a.imag() * a.imag();
80 return a.real() * a.real() + a.imag() * a.imag();
83 template <
typename ValueType>
130 template <
typename T>
134 throwException(
false,
"imagPart() not implemented for datatype.");
168 template <
typename T>
172 throwException(
false,
"conjugate() not implemented for datatype.");
191 inline std::complex<float>
198 inline std::complex<double>
unsigned int abs_(unsigned int a)
Definition: DataTypeOverloads.h:12
unsigned int absSq(unsigned int a)
Definition: DataTypeOverloads.h:48
bool absCompare(ValueType a, ValueType b)
Definition: DataTypeOverloads.h:85
void throwException(bool condition, std::string msg)
Definition: Exceptions.cpp:56
RealType< T >::Type imagPart(const T &x)
Definition: DataTypeOverloads.h:132
T conjugate(const T &x)
Definition: DataTypeOverloads.h:170
RealType< T >::Type realPart(const T &x)
Definition: DataTypeOverloads.h:94
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
Definition: TypeConfig.h:15
void Type
Definition: TypeConfig.h:16