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

◆ norm1() [1/3]

template<typename Container , require_eigen_vt< is_fvar, Container > * = nullptr>
auto stan::math::norm1 ( const Container &  x)
inline

Compute the L1 norm of the specified vector of values.

Returns L1 norm of a vector.

Template Parameters
TType of input vector.
Parameters
[in]xVector of specified values.
Returns
L1 norm of x.

For vectors that equals the sum of magnitudes of its individual elements.

Template Parameters
Containertype of the vector (must be derived from std::Vector)
Parameters
vVector.
Returns
L1 norm of v.

Definition at line 24 of file norm1.hpp.