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
`dim` (optional): For arrays of rank > 2, shall be an integer array of size 2 specifying the dimensions over which to compute the matrix norm. Default value is `[1,2]`. It is an `intent(in)` argument.
1597
+
1598
+
`err` (optional): Shall be a `type(linalg_state_type)` value. This is an `intent(out)` argument.
1599
+
1600
+
### Return value
1601
+
1602
+
For rank-2 input arrays, the return value `x` is a scalar containing the matrix norm.
1603
+
For arrays of rank > 2, if the optional `dim` argument is present, `x` is a rank `n-2` array with the same shape as \( A \) except
1604
+
for dimensions `dim(1)` and `dim(2)`, which are dropped. Each element of `x` contains the matrix norm of the corresponding submatrix of \( A \),
1605
+
evaluated over the specified dimensions only, with the given order.
1606
+
1607
+
If an invalid norm type is provided, defaults to 1-norm and raises `LINALG_ERROR`.
1608
+
Raises `LINALG_VALUE_ERROR` if any of the arguments has an invalid size.
1609
+
If `err` is not present, exceptions trigger an `error stop`.
0 commit comments