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

◆ norm1() [3/3]

template<typename T , require_eigen_vector_vt< is_var, T > * = nullptr>
var stan::math::norm1 ( const T &  v)
inline

Returns the L1 norm of a vector of var.

Returns the L1 norm of a var_value<Vector>.

Template Parameters
Ttype of the vector (must have one compile-time dimension equal to 1)
Parameters
[in]vVector.
Returns
L1 norm of v.
Template Parameters
Avar_value<> whose inner type has one compile-time row or column.
Parameters
[in]vVector.
Returns
L1 norm of v.

Definition at line 24 of file norm1.hpp.