| commit | 9fde9cce5d261fba692082be6e7bcac04f98a22d | [log] [tgz] |
|---|---|---|
| author | Antonio Sanchez <cantonios@google.com> | Tue Feb 09 12:01:09 2021 -0800 |
| committer | Rasmus Munk Larsen <rmlarsen@google.com> | Wed Feb 10 22:48:05 2021 +0000 |
| tree | cd0daa151b9edb50c3db9d7c663ed18a794e2e8a | |
| parent | 4cb563a01e0619ea1798c7927f1909755ead2dd8 [diff] |
Adjust bounds for pexp_float/double The original clamping bounds on `_x` actually produce finite values: ``` exp(88.3762626647950) = 2.40614e+38 < 3.40282e+38 exp(709.437) = 1.27226e+308 < 1.79769e+308 ``` so with an accurate `ldexp` implementation, `pexp` fails for large inputs, producing finite values instead of `inf`. This adjusts the bounds slightly outside the finite range so that the output will overflow to +/- `inf` as expected.
Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
For more information go to http://eigen.tuxfamily.org/.
For pull request, bug reports, and feature requests, go to https://gitlab.com/libeigen/eigen.