39template <concepts::real_scalar T>
40auto abs(
const T& val) -> T {
51template <concepts::real_scalar T>
52auto abs(
const std::complex<T>& val) -> T {
63template <concepts::
signed_
integral T>
64auto abs(
const T& val) -> T {
75template <concepts::
unsigned_
integral T>
76auto abs(
const T& val) -> T {
Namespace of definitions common in this project.
auto abs(const T &val) -> T
Calculate the absolute value of a number.
Namespace of num_collect source codes.
Definition of real_scalar concept.
Definition of signed_integral concept.
Definition of unsigned_integral concept.