alpaqa 1.0.0a13
Nonconvex constrained optimization
Loading...
Searching...
No Matches
float.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <cmath>
6#include <complex>
7#include <concepts>
8#include <type_traits>
9
10namespace alpaqa {
11
12template <typename T>
13struct is_complex_float : std::false_type {};
14
15template <std::floating_point T>
16struct is_complex_float<std::complex<T>> : std::true_type {};
17
18template <class T>
20
21template <typename T>
23 std::floating_point<T> || is_complex_float_v<T>;
24
25} // namespace alpaqa
constexpr bool is_complex_float_v
Definition float.hpp:19
constexpr const auto inf
Definition config.hpp:85