Loading [MathJax]/extensions/tex2jax.js
WPILibC++
2025.3.2
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
Enumerations
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
Enumerator
a
b
c
f
h
i
k
l
m
o
p
s
t
u
w
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
Enumerator
a
b
c
f
i
k
m
o
p
r
s
v
Related Symbols
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
a
c
e
h
m
n
p
r
s
t
u
w
Enumerator
c
h
i
m
n
p
u
w
Macros
_
a
c
d
e
f
g
h
i
j
k
l
m
n
p
r
s
t
u
v
w
x
▼
WPILibC++
LICENSE
Deprecated List
Todo List
►
Topics
►
Namespaces
►
Concepts
►
Classes
▼
Files
▼
File List
►
cameraserver
►
debugging
►
fmt
►
frc
►
frc
►
frc
►
frc
►
frc
►
frc
►
frc2
►
frc2
►
generated
►
generated
►
generated
►
hal
►
networktables
►
thirdparty
▼
thirdparty
▼
gcem
▼
include
▼
gcem_incl
►
quadrature
►
abs.hpp
►
acos.hpp
►
acosh.hpp
►
asin.hpp
►
asinh.hpp
►
atan.hpp
►
atan2.hpp
►
atanh.hpp
►
beta.hpp
►
binomial_coef.hpp
►
ceil.hpp
►
copysign.hpp
►
cos.hpp
►
cosh.hpp
►
erf.hpp
►
erf_inv.hpp
►
exp.hpp
►
expm1.hpp
►
fabs.hpp
►
fabsf.hpp
►
fabsl.hpp
►
factorial.hpp
►
find_exponent.hpp
►
find_fraction.hpp
►
find_whole.hpp
►
floor.hpp
►
fmod.hpp
►
gcd.hpp
►
gcem_options.hpp
►
hypot.hpp
►
incomplete_beta.hpp
►
incomplete_beta_inv.hpp
►
incomplete_gamma.hpp
►
incomplete_gamma_inv.hpp
►
inv_sqrt.hpp
►
is_even.hpp
►
is_finite.hpp
►
is_inf.hpp
►
is_nan.hpp
►
is_odd.hpp
►
lbeta.hpp
►
lcm.hpp
►
lgamma.hpp
►
lmgamma.hpp
►
log.hpp
►
log10.hpp
►
log1p.hpp
►
log2.hpp
►
log_binomial_coef.hpp
►
mantissa.hpp
►
max.hpp
►
min.hpp
►
neg_zero.hpp
►
pow.hpp
►
pow_integral.hpp
►
round.hpp
►
sgn.hpp
►
signbit.hpp
►
sin.hpp
►
sinh.hpp
►
sqrt.hpp
►
tan.hpp
►
tanh.hpp
►
tgamma.hpp
►
trunc.hpp
gcem.hpp
►
sleipnir
►
thirdparty
►
units
►
vision
►
wpi
►
wpi
►
wpi
►
wpi
►
wpi
►
wpi
►
wpi
►
wpi
►
wpimath
►
wpinet
cscore.h
►
cscore_c.h
►
cscore_cpp.h
►
cscore_cv.h
cscore_oo.h
►
cscore_raw.h
►
cscore_runloop.h
ntcore.h
►
ntcore_c.h
►
ntcore_cpp.h
►
ntcore_test.h
►
WPILibVersion.h
debugging.hpp
►
pb.h
►
pb_common.h
►
pb_decode.h
►
pb_encode.h
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
fabsl.hpp
Go to the documentation of this file.
1
/*################################################################################
2
##
3
## Copyright (C) 2016-2024 Keith O'Hara
4
##
5
## This file is part of the GCE-Math C++ library.
6
##
7
## Licensed under the Apache License, Version 2.0 (the "License");
8
## you may not use this file except in compliance with the License.
9
## You may obtain a copy of the License at
10
##
11
## http://www.apache.org/licenses/LICENSE-2.0
12
##
13
## Unless required by applicable law or agreed to in writing, software
14
## distributed under the License is distributed on an "AS IS" BASIS,
15
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
## See the License for the specific language governing permissions and
17
## limitations under the License.
18
##
19
################################################################################*/
20
21
#ifndef _gcem_fabsl_HPP
22
#define _gcem_fabsl_HPP
23
24
namespace
gcem
25
{
26
27
/**
28
* Compile-time floating-point absolute value function
29
*
30
* @param x a real-valued input.
31
* @return the absolute value of \c x, \f$ |x| \f$, where the return type is a floating point number (long double only).
32
*/
33
34
template
<
typename
T>
35
constexpr
36
long
double
37
fabsl
(
const
T x)
38
noexcept
39
{
40
return
gcem::abs
(
static_cast<
long
double
>
(x) );
41
}
37
fabsl
(
const
T x) {
…
}
42
43
}
44
45
#endif
gcem
Definition
is_odd.hpp:29
gcem::abs
constexpr T abs(const T x) noexcept
Compile-time absolute value function.
Definition
abs.hpp:40
gcem::fabsl
constexpr long double fabsl(const T x) noexcept
Compile-time floating-point absolute value function.
Definition
fabsl.hpp:37
thirdparty
gcem
include
gcem_incl
fabsl.hpp
Generated on Mon Mar 17 2025 23:50:34 for WPILibC++ by
1.12.0