alpaqa
1.0.0a16
Nonconvex constrained optimization
Loading...
Searching...
No Matches
src
alpaqa
include
alpaqa
util
float.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
alpaqa/util/quadmath/quadmath.hpp
>
4
5
#include <cmath>
6
#include <complex>
7
#include <concepts>
8
#include <type_traits>
9
10
namespace
alpaqa
{
11
12
template
<
typename
T>
13
struct
is_complex_float
: std::false_type {};
14
15
template
<std::
float
ing_po
int
T>
16
struct
is_complex_float
<std::complex<T>> : std::true_type {};
17
18
template
<
class
T>
19
inline
constexpr
bool
is_complex_float_v
=
is_complex_float<T>::value
;
20
21
template
<
typename
T>
22
concept
float_or_complex_float
=
23
std::floating_point<T> ||
is_complex_float_v<T>
;
24
25
}
// namespace alpaqa
alpaqa::float_or_complex_float
Definition
float.hpp:22
alpaqa
Definition
anderson.hpp:10
alpaqa::is_complex_float_v
constexpr bool is_complex_float_v
Definition
float.hpp:19
alpaqa::inf
constexpr const auto inf
Definition
config.hpp:98
quadmath.hpp
alpaqa::is_complex_float
Definition
float.hpp:13
Generated on Tue Dec 12 2023 for alpaqa by
1.9.8