warp.norm_l1#

warp.norm_l1(v: Any) None#
  • Kernel

  • Differentiable

Computes the L1 norm of a vector v.

\[\|v\|_1 = \sum_i |v_i|\]
Args:

v (Vector[Any,Float]): The vector to compute the L1 norm of.

Returns:

float: The L1 norm of the vector.