warp.norm_l1#

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

  • Differentiable

Compute the L1 norm of a vector v.

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

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

Returns:

The L1 norm of the vector.

Return type:

float