pairinteraction
A Rydberg Interaction Calculator
pairinteraction::traits::NumTraits< Numeric > Struct Template Reference

Helper struct to extract types from a numerical type. More...

#include <traits.hpp>

+ Collaboration diagram for pairinteraction::traits::NumTraits< Numeric >:

Public Types

using real_t = Numeric
 

Static Public Attributes

static constexpr bool is_complex_v = false
 
static constexpr bool from_floating_point_v = std::is_floating_point<Numeric>::value
 
static constexpr bool from_integral_v = std::is_integral<Numeric>::value
 

Detailed Description

template<typename Numeric>
struct pairinteraction::traits::NumTraits< Numeric >

Helper struct to extract types from a numerical type.

Template Parameters
NumericThe numerical type from which to extract types.

Definition at line 35 of file traits.hpp.

Member Typedef Documentation

◆ real_t

template<typename Numeric >
using pairinteraction::traits::NumTraits< Numeric >::real_t = Numeric

Definition at line 38 of file traits.hpp.

Field Documentation

◆ from_floating_point_v

template<typename Numeric >
constexpr bool pairinteraction::traits::NumTraits< Numeric >::from_floating_point_v = std::is_floating_point<Numeric>::value
staticconstexpr

Definition at line 40 of file traits.hpp.

◆ from_integral_v

template<typename Numeric >
constexpr bool pairinteraction::traits::NumTraits< Numeric >::from_integral_v = std::is_integral<Numeric>::value
staticconstexpr

Definition at line 41 of file traits.hpp.

◆ is_complex_v

template<typename Numeric >
constexpr bool pairinteraction::traits::NumTraits< Numeric >::is_complex_v = false
staticconstexpr

Definition at line 39 of file traits.hpp.


The documentation for this struct was generated from the following file: