# matrix_norm¶

ivy.matrix_norm(x, p=2, axes=None, keepdims=False, f=None)[source]

Compute the matrix p-norm.

Parameters
• 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.

Returns

Matrix norm of the array at specified axes.

Supported Frameworks: