-
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
numpy_quaddtype.get_sleef_constant("smallest_subnormal")
returns QuadPrecision('3.362103143112093506262677817321753e-4932', backend='sleef')
, which does not match the documented 2^-16494 from https://sleef.org/quad.xhtml.
The implementation here
numpy-user-dtypes/quaddtype/numpy_quaddtype/src/quaddtype_main.c
Lines 73 to 75 in 47c9409
else if (strcmp(constant_name, "smallest_subnormal") == 0) { | |
result->value.sleef_value = SLEEF_QUAD_DENORM_MIN; | |
} |
looks correct, is the macro defined in the wrong way?
In any case, we should fix this and add tests for all exposed constant values.
Metadata
Metadata
Assignees
Labels
No labels