numpy.linalg.norm(x, ord=None, axis=None, keepdims=False) [source]
Matrix or vector norm. This function is able to return one of eight different matrix norms, or one of an infinite number of vector norms (described below), depending on the value of the ord parameter. Parameters:
x : array_like Input array. If axis is None, x must be 1-D or 2-D. ord : {non-zero int, inf, -inf, ?fro?, ?nuc?}, optional Order of the norm (see table under Notes). inf means numpy?s inf object. axis : {int, 2