Skip to content

Commit

Permalink
60 / 200 : add ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
beachdweller committed May 24, 2024
1 parent c80d7ba commit 2f994d5
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -662,10 +662,12 @@
"except AssertionError as e:\n",
" print(e)\n",
"else:\n",
" assert not np.allclose(matA @ vecX, lam * vecX), (\n",
" 'Please verify\\n'\n",
" f'matA @ vecX = {matA @ vecX}\\n'\n",
" f'lam * vecX = {lam * vecX}\\n'\n",
" raise ValueError(\n",
" (\n",
" 'Please verify\\n'\n",
" f'matA @ vecX = {matA @ vecX}\\n'\n",
" f'lam * vecX = {lam * vecX}\\n'\n",
" )\n",
" )\n",
"\n"
]
Expand Down

0 comments on commit 2f994d5

Please sign in to comment.