|
Stratax 0.4.0rc1
|
Compile-time metadata for supported dtypes. More...
#include <climits>#include <cstddef>#include <limits>#include <string_view>#include <type_traits>#include <stratax/core/dtypes/Types.hpp>

Go to the source code of this file.
Macros | |
| #define | STRATAX_DEFINE_DTYPE_TRAITS(TYPE, KIND, NAME) |
| Defines metadata for a non-complex Stratax dtype. | |
| #define | STRATAX_DEFINE_FLOAT_DTYPE_TRAITS(TYPE, RANK, NAME) |
| Defines metadata for a ranked floating-point Stratax dtype. | |
| #define | STRATAX_DEFINE_COMPLEX_DTYPE_TRAITS(TYPE, COMPONENT, RANK, NAME) |
| Defines metadata for a complex Stratax dtype. | |
| #define | STRATAX_DEFINE_COMPLEX_COMPONENT(COMPLEX, REAL) |
| Defines a complex-to-real component specialization. | |
| #define | STRATAX_DEFINE_COMPLEX_FROM_REAL(REAL, COMPLEX) |
| Defines a real-to-complex dtype specialization. | |
Typedefs | |
| template<typename T > | |
| using | stratax::core::complex_component_t = typename ComplexComponent< std::remove_cvref_t< T > >::type |
| Underlying real dtype of a complex dtype. | |
| template<typename T > | |
| using | stratax::core::complex_from_real_t = typename ComplexFromReal< std::remove_cvref_t< T > >::type |
| Complex dtype corresponding to a real floating-point dtype. | |
Enumerations | |
| enum class | stratax::core::DTypeKind { Bool , SignedInteger , UnsignedInteger , Floating , Complex } |
| Identifies the general category of a Stratax dtype. More... | |
Compile-time metadata for supported dtypes.
Definition in file DTypeTraits.hpp.
| #define STRATAX_DEFINE_COMPLEX_COMPONENT | ( | COMPLEX, | |
| REAL | |||
| ) |
Defines a complex-to-real component specialization.
Definition at line 135 of file DTypeTraits.hpp.
| #define STRATAX_DEFINE_COMPLEX_DTYPE_TRAITS | ( | TYPE, | |
| COMPONENT, | |||
| RANK, | |||
| NAME | |||
| ) |
Defines metadata for a complex Stratax dtype.
Complex precision is defined by the precision of its underlying floating-point component type.
Definition at line 76 of file DTypeTraits.hpp.
| #define STRATAX_DEFINE_COMPLEX_FROM_REAL | ( | REAL, | |
| COMPLEX | |||
| ) |
Defines a real-to-complex dtype specialization.
Definition at line 163 of file DTypeTraits.hpp.
| #define STRATAX_DEFINE_DTYPE_TRAITS | ( | TYPE, | |
| KIND, | |||
| NAME | |||
| ) |
Defines metadata for a non-complex Stratax dtype.
Definition at line 42 of file DTypeTraits.hpp.
| #define STRATAX_DEFINE_FLOAT_DTYPE_TRAITS | ( | TYPE, | |
| RANK, | |||
| NAME | |||
| ) |
Defines metadata for a ranked floating-point Stratax dtype.
Definition at line 57 of file DTypeTraits.hpp.
| using stratax::core::complex_component_t = typedef typename ComplexComponent<std::remove_cvref_t<T> >::type |
Underlying real dtype of a complex dtype.
Definition at line 153 of file DTypeTraits.hpp.
| using stratax::core::complex_from_real_t = typedef typename ComplexFromReal<std::remove_cvref_t<T> >::type |
Complex dtype corresponding to a real floating-point dtype.
Definition at line 181 of file DTypeTraits.hpp.
|
strong |
Identifies the general category of a Stratax dtype.
Definition at line 19 of file DTypeTraits.hpp.