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

◆ norm2() [3/3]

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

Returns the L2 norm of a vector of var.

Returns the L2 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
L2 norm of v.
Template Parameters
Avar_value<> whose inner type has one compile-time row or column.
Parameters
[in]vVector.
Returns
L2 norm of v.

Definition at line 22 of file norm2.hpp.