VCCC  2024.05
VisualCamp Common C++ library

calculate norm More...

Detailed Description

\( {\large \hat{x} = \sqrt{\sum{x_i ^2}} }\)

Functions

template<typename InputIterator , std::enable_if_t< is_iterable< InputIterator >::value, int > = 0>
auto norm (InputIterator first, InputIterator last)
 calculate norm on iterator [first, last) More...
 
template<typename T , std::enable_if_t< std::is_arithmetic< T >::value, int > = 0>
norm (T arg)
 
template<typename Arg , typename ... Args, std::enable_if_t< conjunction< std::is_arithmetic< Arg >, std::is_arithmetic< Args... >>::value, int > = 0>
auto norm (Arg arg, Args... args)
 calculate norm of variadics More...
 

Function Documentation

◆ norm() [1/3]

auto vccc::norm ( Arg  arg,
Args...  args 
)
inline
Returns
norm

◆ norm() [2/3]

auto vccc::norm ( InputIterator  first,
InputIterator  last 
)
inline
Parameters
firstbeginning iterator
lastending iterator
Returns
norm

◆ norm() [3/3]

T vccc::norm ( arg)
inline