guanaqo
1.0.0-alpha.24
Utilities for scientific software
Loading...
Searching...
No Matches
float.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
guanaqo/quadmath/quadmath.hpp
>
4
5
#include <cmath>
6
#include <complex>
7
#include <concepts>
8
#include <type_traits>
9
10
namespace
guanaqo
{
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 guanaqo
guanaqo::float_or_complex_float
Definition
float.hpp:22
guanaqo
Definition
blas-interface.hpp:9
guanaqo::is_complex_float_v
constexpr bool is_complex_float_v
Definition
float.hpp:19
quadmath.hpp
guanaqo::is_complex_float
Definition
float.hpp:13
include
guanaqo
float.hpp
Generated on
for guanaqo by
1.16.1