You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Computes the matrix norm of a matrix (or a stack of matrices) `x`.
267
267
268
268
#### Parameters
269
269
270
270
-**x**: _<array>_
271
271
272
-
- input array. Must have at least `2` dimensions. Should have a floating-point data type.
273
-
274
-
-**axis**: _Tuple\[ int, int ]_
275
-
276
-
- a 2-tuple which specifies the axes (dimensions) defining two-dimensional matrices for which to compute matrix norms. Negative indices must be supported. Default: `(-2, -1)` (i.e., the last two-dimensions).
272
+
- input array having shape `(..., M, N)` and whose innermost two dimensions form `MxN` matrices. Should have a floating-point data type.
277
273
278
274
-**keepdims**: _bool_
279
275
280
-
- If `True`, the axes (dimensions) specified by `axis`must be included in the result as singleton dimensions, and, accordingly, the result must be compatible with the input array (see {ref}`broadcasting`). Otherwise, if `False`, the axes (dimensions) specified by `axis` must not be included in the result. Default: `False`.
276
+
- If `True`, the last two axes (dimensions) must be included in the result as singleton dimensions, and, accordingly, the result must be compatible with the input array (see {ref}`broadcasting`). Otherwise, if `False`, the last two axes (dimensions) must not be included in the result. Default: `False`.
@@ -309,7 +305,7 @@ Computes the matrix norm of a matrix (or a stack of matrices) `x`.
309
305
310
306
-**out**: _<array>_
311
307
312
-
- an array containing the norms. If `keepdims` is `False`, the returned array must have a rank which is two less than the rank of `x`. The returned array must have a floating-point data type determined by {ref}`type-promotion`.
308
+
- an array containing the norms for each `MxN` matrix. If `keepdims` is `False`, the returned array must have a rank which is two less than the rank of `x`. The returned array must have a floating-point data type determined by {ref}`type-promotion`.
0 commit comments