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>
38 using has_complex_elements = is_complex_type<vector_element_t<Structure>>;
44 template<
typename Structure,
typename T =
bool>
45 using enable_complex = std::enable_if_t<is_complex_type<Structure>::value, T>;
Main namespace of the library which contains all functions and objects.
Definition algebra.h:27
complex< complex< Type > > bicomplex
A bi-complex number.
Definition complex_types.h:20