6#ifndef THEORETICA_COMPLEX_TYPES_H
7#define THEORETICA_COMPLEX_TYPES_H
10#include "../core/core_traits.h"
11#include "../core/constants.h"
19 template<
typename Type = real>
27 struct is_complex_type : std::false_type {};
33 struct is_complex_type<complex<
T>> : std::true_type {};
37 template<
typename Structure>
44 template<
typename Structure,
typename T =
bool>
45 using enable_complex = std::enable_if_t<is_complex_type<Structure>::value,
T>;
Complex number in algebraic form .
Definition complex.h:26
Main namespace of the library which contains all functions and objects.
Definition algebra.h:27
Vector make_error()
Create a vector representing an error state, with all NaN values.
Definition algebra.h:103