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

◆ norm1() [1/4]

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

Compute the L1 norm of the specified vector of values.

Returns L1 norm of a vector.

Template Parameters
ContainerType 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
xVector.
Returns
L1 norm of v.

Definition at line 23 of file norm1.hpp.