abs#

static vectorious.abs(x)#

Returns the absolute value of each element of x.

Arguments:
Returns:

NDArray

Examples:

import { abs } from 'vectorious/core/abs';

abs([-1, -2, -3]) // => array([1, 2, 3])