blob: 02c92705323a54d902541c31a5290c3ff09365fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
/** \file
* \ingroup bli
*/
#ifdef WITH_GMP
/* This file uses an external file header to define the multi-precision
* rational type, mpq_class.
* This class keeps separate multi-precision integer numerator and
* denominator, reduced to lowest terms after each arithmetic operation.
* It can be used where it is important to have exact arithmetic results.
*
* See gmplib.org for full documentation. In particular:
* https://gmplib.org/manual/C_002b_002b-Interface-Rationals
*/
# include "gmpxx.h"
# include "BLI_math_base.hh"
namespace blender::math {
template<> inline constexpr bool is_math_float_type<mpq_class> = true;
}
#endif /* WITH_GMP */
|