copapy.abs#

copapy.abs(x)#
Overloads:
  • x (U) → U

  • x (value[U]) → value[U]

  • x (vector[U]) → vector[U]

  • x (tensor[U]) → tensor[U]

Absolute value function

Parameters:

x (TypeVar(U, int, float) | value[TypeVar(U, int, float)] | vector[TypeVar(U, int, float)] | tensor[TypeVar(U, int, float)]) – Input value

Returns:

Absolute value of x