| commit | b2126fd6b5e232d072ceadb1abb6695ae3352e2e | [log] [tgz] |
|---|---|---|
| author | Antonio Sanchez <cantonios@google.com> | Wed Jan 20 19:00:09 2021 -0800 |
| committer | Rasmus Munk Larsen <rmlarsen@google.com> | Thu Jan 21 19:32:28 2021 +0000 |
| tree | b86944d559717eeee3589efa21dcfd30cbdd2f3d | |
| parent | 25d8498f8ba29c8dc055dd56113facbdbe154345 [diff] |
Fix pfrexp/pldexp for half. The recent addition of vectorized pow (!330) relies on `pfrexp` and `pldexp`. This was missing for `Eigen::half` and `Eigen::bfloat16`. Adding tests for these packet ops also exposed an issue with handling negative values in `pfrexp`, returning an incorrect exponent. Added the missing implementations, corrected the exponent in `pfrexp1`, and added `packetmath` tests.
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.