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

◆ norm1() [2/4]

template<typename Container , require_eigen_vt< std::is_arithmetic, Container > * = nullptr>
double stan::math::norm1 ( Container &&  x)
inline

Returns L1 norm of a vector.

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

Template Parameters
Containertype of the vector (must be derived from Eigen::MatrixBase)
Parameters
xVector.
Returns
L1 norm of v.

Definition at line 22 of file norm1.hpp.