Mjolnir Core
Core functionality of the Mjolnir API
Core Math
cross_product
cross_product
determinant_2x2
determinant_2x2
determinant_3x3
determinant_3x3
determinant_4x4
determinant_4x4
dot_product
dot_product
gauss_summation
is_power_of_2
power
power_of_2
scalar_triple_product
scalar_triple_product
◆
gauss_summation()
constexpr auto gauss_summation
(
T_Type
n
)
-> T_Type
constexpr
Calculate the sum of the first
n
positive numbers.
Template Parameters
T_Type
An integer type
Parameters
[in]
n
Specifies how many numbers should be summed up.
Returns
The sum of the first
n
positive numbers
Generated by
1.9.1