Skip to content

Commit a17ea71

Browse files
committed
Format the values of norm orders to the table
1 parent 0c738e4 commit a17ea71

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

dpnp/linalg/dpnp_iface_linalg.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,18 @@ def cond(x, p=None):
182182
p : {None, 1, -1, 2, -2, inf, -inf, "fro"}, optional
183183
Order of the norm used in the condition number computation:
184184
185-
- None: 2-norm.
186-
- "fro": Frobenius norm.
187-
- inf: max(sum(abs(x), axis=1)).
188-
- -inf: min(sum(abs(x), axis=1)).
189-
- 1: max(sum(abs(x), axis=0)).
190-
- -1: min(sum(abs(x), axis=0)).
191-
- 2: 2-norm (largest singular value).
192-
- -2: smallest singular value.
185+
===== ============================
186+
p norm for matrices
187+
===== ============================
188+
None 2-norm
189+
'fro' Frobenius norm
190+
inf max(sum(abs(x), axis=1))
191+
-inf min(sum(abs(x), axis=1))
192+
1 max(sum(abs(x), axis=0))
193+
-1 min(sum(abs(x), axis=0))
194+
2 2-norm (largest singular value)
195+
-2 smallest singular value
196+
===== ============================
193197
194198
``inf`` means the :obj:`dpnp.inf` object, and the Frobenius norm is
195199
the root-of-sum-of-squares norm.

0 commit comments

Comments
 (0)