tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
ratio_multiply.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_RATIO_MULTIPLY_HPP
4
#define TETL_RATIO_MULTIPLY_HPP
5
6
#include <
etl/_ratio/ratio.hpp
>
7
8
namespace
etl
{
9
14
template
<
typename
R1,
typename
R2>
15
using
ratio_multiply
=
ratio<R1::num * R2::num, R1::den * R2::den>
;
16
17
}
// namespace etl
18
19
#endif
// TETL_RATIO_MULTIPLY_HPP
ratio.hpp
etl::ratio_multiply
ratio< R1::num *R2::num, R1::den *R2::den > ratio_multiply
The alias template ratio_multiply denotes the result of multiplying two exact rational fractions repr...
Definition
ratio_multiply.hpp:15
etl
Definition
adjacent_find.hpp:8
etl::ratio
The typename template provides compile-time rational arithmetic support. Each instantiation of this t...
Definition
ratio.hpp:21
include
etl
_ratio
ratio_multiply.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0