numpy.linalg.matrix_norm#

linalg.matrix_norm(x, /, *, keepdims=False, ord='fro')[source]#

Computes the matrix norm of a matrix (or a stack of matrices) x.

This function is Array API compatible.

Parameters:
xarray_like

Input array having shape (…, M, N) and whose two innermost dimensions form MxN matrices.

keepdimsbool, optional

If this is set to True, the axes which are normed over are left in the result as dimensions with size one. Default: False.

ord{1, -1, 2, -2, inf, -inf, ‘fro’, ‘nuc’}, optional

The order of the norm. For details see the table under Notes in numpy.linalg.norm.

See also

numpy.linalg.norm

Generic norm function