From 18d4a32f78691b98456f7ead9076efca88176ea1 Mon Sep 17 00:00:00 2001 From: Felix Dangel Date: Tue, 17 Oct 2023 11:18:48 -0400 Subject: [PATCH] [FIX] Minor correction --- curvlinops/diagonal/hutchinson.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/curvlinops/diagonal/hutchinson.py b/curvlinops/diagonal/hutchinson.py index 49c11d4..44a36ee 100644 --- a/curvlinops/diagonal/hutchinson.py +++ b/curvlinops/diagonal/hutchinson.py @@ -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: @@ -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)