Skip to content

Use safe_sqrt for norms#19

Open
lkdvos wants to merge 2 commits intoJutho:masterfrom
lkdvos:smallnorm
Open

Use safe_sqrt for norms#19
lkdvos wants to merge 2 commits intoJutho:masterfrom
lkdvos:smallnorm

Conversation

@lkdvos
Copy link

@lkdvos lkdvos commented Jun 12, 2024

This is a patch-fix for the encounter of (small) negative norms, in order to stabilize the algorithms.
In particular, whenever this happens and the norm of a small negative number is requested, instead of a DomainError, an error will be printed (not thrown!) and we'll return eps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants