Skip to content

Commit f069f3f

Browse files
committed
add scale comment
1 parent 4ea38dc commit f069f3f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/test_mean_estimator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ def test_src_adjoint(sim, basis, estimator):
137137
proj = sim.images[:] # projections of v
138138
u = proj.asnumpy() # u = proj
139139

140+
# `src_backward` scales by 1/n
140141
backproj = Coef(basis, estimator.src_backward() * sim.n).evaluate()
141142

142143
lhs = np.dot(proj.asnumpy().flatten(), u.flatten())

tests/test_weighted_mean_estimator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def test_src_adjoint(sim, basis, estimator):
130130
proj = sim.images[:] # projections of v
131131
u = proj.asnumpy() # u = proj
132132

133+
# `src_backward` scales by 1/n
133134
backproj = Coef(basis, estimator.src_backward() * sim.n).evaluate()
134135

135136
lhs = np.dot(proj.asnumpy().flatten(), u.flatten())

0 commit comments

Comments
 (0)