| commit | c6efc4e0ba4b9acb8f99e6e976d4853bedc21db5 | [log] [tgz] |
|---|---|---|
| author | Antonio Sanchez <cantonios@google.com> | Fri Dec 11 14:34:31 2020 -0800 |
| committer | Antonio Sanchez <cantonios@google.com> | Fri Dec 11 14:34:31 2020 -0800 |
| tree | 2324384da59139bc1d91f25e3283d6b5417b046e | |
| parent | e82722a4a7d69c31155c0de9ccee2c955323b620 [diff] |
Replace M_LOG2E and M_LN2 with custom macros. For these to exist we would need to define `_USE_MATH_DEFINES` before `cmath` or `math.h` is first included. However, we don't control the include order for projects outside Eigen, so even defining the macro in `Eigen/Core` does not fix the issue for projects that end up including `<cmath>` before Eigen does (explicitly or transitively). To fix this, we define `EIGEN_LOG2E` and `EIGEN_LN2` ourselves.
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.