norm#

static vectorious.norm(x)#

Calculates the norm of current array (also called L2 norm or Euclidean length). Accelerated with BLAS ?nrm2.

Arguments:
Returns:

Number

Examples:

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

norm([1, 2, 3]); // => 3.7416574954986572