pairinteraction
A Rydberg Interaction Calculator
traits.hpp File Reference
#include "pairinteraction/enums/FloatType.hpp"
#include <complex>
#include <functional>
#include <type_traits>
+ Include dependency graph for traits.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pairinteraction::traits::NumTraits< Numeric >
 Helper struct to extract types from a numerical type. More...
 
struct  pairinteraction::traits::NumTraits< std::complex< Numeric > >
 
struct  pairinteraction::traits::OpTraits< T >
 Helper struct to extract whether a type supports certain operations. More...
 
struct  pairinteraction::traits::FPTypeTraits< FloatType::FLOAT32 >
 
struct  pairinteraction::traits::FPTypeTraits< FloatType::FLOAT64 >
 

Namespaces

namespace  pairinteraction
 
namespace  pairinteraction::traits
 

Typedefs

template<typename Scalar , FloatType FP>
using pairinteraction::traits::restricted_t = std::conditional_t< traits::NumTraits< Scalar >::is_complex_v, std::complex< typename FPTypeTraits< FP >::type >, typename FPTypeTraits< FP >::type >