Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ abs() [3/6]

template<typename T , require_arithmetic_t< T > * = nullptr>
auto stan::math::abs ( T &&  x)
inline

Return the absolute value of the specified arithmetic argument.

Return the absolute value (also known as the norm, modulus, or magnitude) of the specified complex argument.

The return type is the same as the argument type.

Template Parameters
Ttype of argument (must be arithmetic)
Parameters
xargument
Returns
absolute value of argument
Template Parameters
Ttype of argument (must be complex)
Parameters
xargument
Returns
absolute value of argument (a real number)

Definition at line 25 of file abs.hpp.