1#ifndef XPED_SCALAR_TRAITS_H_
2#define XPED_SCALAR_TRAITS_H_
8template <
typename Scalar>
16 typedef std::complex<double>
Comp;
17 static inline double epsilon() {
return 1.e-12; }
21template <
typename RealScalar_>
22struct ScalarTraits<std::complex<RealScalar_>>
24 typedef RealScalar_ Real;
25 typedef std::complex<RealScalar_> Comp;
26 static inline Real epsilon() {
return static_cast<Real
>(1.e-12); }
27 static constexpr bool IS_COMPLEX() {
return true; }
static double epsilon()
Definition: ScalarTraits.hpp:17
static constexpr bool IS_COMPLEX()
Definition: ScalarTraits.hpp:18
double Real
Definition: ScalarTraits.hpp:15
std::complex< double > Comp
Definition: ScalarTraits.hpp:16
Definition: ScalarTraits.hpp:10