NumericAL
A header-only C++20 lexer built on REAL
Loading...
Searching...
No Matches
concepts.hpp
Go to the documentation of this file.
1
6#ifndef NUMERICAL_CONCEPTS_HPP
7#define NUMERICAL_CONCEPTS_HPP
8
9#include <complex>
10#include <concepts>
11
12#include "buffer.hpp"
13
14namespace numerical {
15
27 template <typename T>
28 concept field = std::floating_point<T> || (detail::is_complex_number<T> && std::floating_point<typename T::value_type>);
29
33 template <typename T>
34 concept double_field = std::same_as<T, double> || std::same_as<T, std::complex<double>>;
35} // namespace numerical
36
37#endif // NUMERICAL_CONCEPTS_HPP
numerical::buffer, the storage of the library's vectors, matrices and tensors: a std::vector whose el...
double or std::complex<double>: the scalars of the decompositions written for those alone (the eigend...
Definition concepts.hpp:34
A floating-point field: float, double, long double, or std::complex of one. The factorisations and th...
Definition concepts.hpp:28
The NumericAL public API.
Definition amx.hpp:44