round#

static vectorious.round(x)#

Returns the value of each element of x rounded to the nearest integer.

Arguments:
Returns:

NDArray

Examples:

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

round([1.2, 2.8, 3.5]); // => array([1, 3, 4])