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

◆ abs() [5/7]

template<typename Container , require_ad_container_t< Container > * = nullptr>
auto stan::math::abs ( const Container &  x)
inline

Returns the elementwise abs() of the input, which may be a scalar or any Stan container of numeric scalars.

Version of abs() that accepts std::vectors, Eigen Matrix/Array objects or expressions, and containers of these.

Template Parameters
Containertype of container
Parameters
xargument
Returns
Absolute value of each variable in the container.
Template Parameters
ContainerType of x
Parameters
xargument
Returns
Absolute value of each variable in the container.

Definition at line 66 of file abs.hpp.