Blender
V3.3
source
blender
blenlib
BLI_math_mpq.hh
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#pragma once
4
9
#ifdef WITH_GMP
10
11
/* This file uses an external file header to define the multi-precision
12
* rational type, mpq_class.
13
* This class keeps separate multi-precision integer numerator and
14
* denominator, reduced to lowest terms after each arithmetic operation.
15
* It can be used where it is important to have exact arithmetic results.
16
*
17
* See gmplib.org for full documentation. In particular:
18
* https://gmplib.org/manual/C_002b_002b-Interface-Rationals
19
*/
20
# include "gmpxx.h"
21
22
# include "
BLI_math_base.hh
"
23
24
namespace
blender::math
{
25
template
<>
inline
constexpr
bool
is_math_float_type<mpq_class> =
true
;
26
}
27
28
#endif
/* WITH_GMP */
BLI_math_base.hh
blender::math
Definition:
BLI_math_base.hh:17
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1