Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Functions
utils.hpp File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  shamunits
 namespace containing the units library
 

Functions

template<int power, class T >
constexpr T shamunits::details::pow_constexpr_fast_inv (T a, T a_inv) noexcept
 Constexpr power expansion function with supplied inverse for negative values.
 

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file utils.hpp.

Function Documentation

◆ pow_constexpr_fast_inv()

template<int power, class T >
constexpr T shamunits::details::pow_constexpr_fast_inv ( a,
a_inv 
)
inlineconstexprnoexcept

Constexpr power expansion function with supplied inverse for negative values.

Definition at line 22 of file utils.hpp.