Skip to content

Commit

Permalink
Fixing docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
vprusso committed Mar 24, 2024
1 parent 928a104 commit bfcf19b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toqito/matrix_props/kp_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ def kp_norm(mat: np.ndarray, k: int, p: int) -> float:
>>> from toqito.matrix_props import kp_norm
>>> from toqito.states import bell
>>> kp_norm(bell(0), 1, np.inf)
1
1.0
To compute the k-largest singular values of a matrix:
>>> import numpy as np
>>> from toqito.matrix_props import kp_norm
>>> from toqito.rand import random_unitary
>>> kp_norm(random_unitary(5), 5, 2)
2.2360679774997902
2.23606797749979
:param mat: 2D numpy ndarray
:param k: The number of singular values to take.
Expand Down

0 comments on commit bfcf19b

Please sign in to comment.