Mjolnir Core
Core functionality of the Mjolnir API

◆ gauss_summation()

constexpr auto gauss_summation ( T_Type  n) -> T_Type
constexpr

Calculate the sum of the first n positive numbers.

Template Parameters
T_TypeAn integer type
Parameters
[in]nSpecifies how many numbers should be summed up.
Returns
The sum of the first n positive numbers