lapack icon indicating copy to clipboard operation
lapack copied to clipboard

IEEECK generates IEEE exceptions

Open foxtran opened this issue 1 month ago • 1 comments

IEEECK generates division-by-zero exception near https://github.com/Reference-LAPACK/lapack/blob/06f5ba3143280d6ccf7b4dff3c0761f1ea9479a2/SRC/ieeeck.f#L100 and ieee-invalid exception near https://github.com/Reference-LAPACK/lapack/blob/06f5ba3143280d6ccf7b4dff3c0761f1ea9479a2/SRC/ieeeck.f#L156

that makes analysis of division-by-zero (and other IEEE exceptions) in other parts of application more complicated since one has to disable checks before LAPACK calls and enable them back after.

With modern Fortran, the same checks can be done via ieee_arithmetic module without generating exceptions. See #1168.

foxtran avatar Nov 30 '25 00:11 foxtran

I agree.

langou avatar Nov 30 '25 07:11 langou