numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
abs.h File Reference

Definition of abs function. More...

Include dependency graph for abs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  num_collect
 Namespace of num_collect source codes.
namespace  num_collect::base
 Namespace of definitions common in this project.

Functions

template<concepts::real_scalar T>
auto num_collect::base::abs (const std::complex< T > &val) -> T
 Calculate the absolute value of a complex number.
template<concepts::real_scalar T>
auto num_collect::base::abs (const T &val) -> T
 Calculate the absolute value of a number.
template<concepts::signed_integral T>
auto num_collect::base::abs (const T &val) -> T
 Calculate the absolute value of a number.
template<concepts::unsigned_integral T>
auto num_collect::base::abs (const T &val) -> T
 Calculate the absolute value of a number.

Detailed Description

Definition of abs function.

Definition in file abs.h.