SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
math.hpp File Reference

Provides math related functionality. More...

#include <bit>
#include <cassert>
#include <cmath>
#include <concepts>
#include <stdexcept>
#include <seqan3/core/platform.hpp>
+ Include dependency graph for math.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  seqan3
 The main SeqAn3 namespace.
 
namespace  seqan3::detail
 The internal SeqAn3 namespace.
 

Functions

template<std::unsigned_integral unsigned_t>
constexpr unsigned_t seqan3::detail::ceil_log2 (unsigned_t const n) noexcept
 Computes the ceil of the logarithm to the base of two for unsigned integers.
 
template<std::unsigned_integral unsigned_t>
constexpr unsigned_t seqan3::detail::floor_log2 (unsigned_t const n) noexcept
 Computes the floor of the logarithm to the base of two for unsigned integers.
 
template<typename base_t , std::unsigned_integral exp_t>
requires (std::same_as<base_t, uint64_t> || std::same_as<base_t, int64_t>)
base_t seqan3::pow (base_t base, exp_t exp)
 Computes the value of base raised to the power exp.
 

Detailed Description

Provides math related functionality.

Author
Enrico Seiler <enrico.seiler AT fu-berlin.de>
Hide me