Skip to content

Commit

Permalink
[FIX] Use column dimension to create random vector
Browse files Browse the repository at this point in the history
  • Loading branch information
f-dangel committed Jul 18, 2023
1 parent f3d4bd9 commit 783e644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion curvlinops/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _check_deterministic(self):
self.print_nonclose(grad1, grad2, rtol, atol)
raise RuntimeError("Check for deterministic gradient failed.")

v = rand(self.shape[0]).astype(self.dtype)
v = rand(self.shape[1]).astype(self.dtype)
mat_v1 = self @ v
mat_v2 = self @ v

Expand Down

0 comments on commit 783e644

Please sign in to comment.