Skip to content

Commit

Permalink
[FIX] Minor correction
Browse files Browse the repository at this point in the history
  • Loading branch information
f-dangel committed Oct 17, 2023
1 parent e32f649 commit 18d4a32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions curvlinops/diagonal/hutchinson.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def __init__(self, A: LinearOperator):
self._A = A

def sample(self, distribution: str = "rademacher") -> ndarray:
"""Draw a sample from the trace estimator.
"""Draw a sample from the diagonal estimator.
Multiple samples can be combined into a more accurate trace estimation via
Multiple samples can be combined into a more accurate diagonal estimation via
averaging.
Args:
Expand All @@ -79,7 +79,7 @@ def sample(self, distribution: str = "rademacher") -> ndarray:
Default is ``'rademacher'``.
Returns:
Sample from the diagonal estimator.
A Sample from the diagonal estimator.
"""
dim = self._A.shape[1]
v = random_vector(dim, distribution)
Expand Down

0 comments on commit 18d4a32

Please sign in to comment.