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

◆ norm1() [2/3]

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

Returns L1 norm of a vector.

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

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

Definition at line 20 of file norm1.hpp.