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

Replace d2norm with hypot #6

Open
ivan-pi opened this issue May 23, 2022 · 0 comments
Open

Replace d2norm with hypot #6

ivan-pi opened this issue May 23, 2022 · 0 comments

Comments

@ivan-pi
Copy link

ivan-pi commented May 23, 2022

The function d2norm defined here

LSQR/src/lsqr.f90

Line 1164 in e581804

pure function d2norm( a, b )

could be replaced with the intrinsic function hypot which returns a value equal to a processor-dependent approximation to the Euclidean distance, without undue overflow or underflow.

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

No branches or pull requests

1 participant