Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change calculation of error so that init_res_norm is well-defined #18

Open
jhabriel opened this issue Mar 6, 2022 · 0 comments
Open
Assignees
Labels
wontfix This will not be worked on

Comments

@jhabriel
Copy link
Owner

jhabriel commented Mar 6, 2022

Specifically, we would like to avoid init_res_norm to be potentially non-defined:

# Compute 'error' as norm of the residual
res_norm = np.linalg.norm(b, 2)
if itr == 0:
    init_res_norm = res_norm
else:
    inti_res_norm = max(res_norm, init_res_norm)
rel_res = res_norm / init_res_norm
@jhabriel jhabriel added the priority:low This issue represents a low priority label Mar 6, 2022
@jhabriel jhabriel self-assigned this Mar 6, 2022
@jhabriel jhabriel added wontfix This will not be worked on and removed priority:low This issue represents a low priority labels May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant