matrix_norm(x, p=2, axes=None, keepdims=False, f=None)¶
Compute the matrix p-norm.
x (array) – Input array.
p (int or str, optional) – Order of the norm. Default is 2.
axes (sequence of ints, optional) – The axes of x along which to compute the matrix norms. Default is None, in which case the last two dimensions are used.
keepdims (bool, optional) – If this is set to True, the axes which are normed over are left in the result as dimensions with size one. With this option the result will broadcast correctly against the original x. Default is False.
f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.
Matrix norm of the array at specified axes.