| commit | c65c2b31d49adea63d31e3ea8f5685a47018e682 | [log] [tgz] |
|---|---|---|
| author | Antonio Sanchez <cantonios@google.com> | Fri Feb 26 15:25:00 2021 -0800 |
| committer | David Tellenbach <david.tellenbach@me.com> | Sat Feb 27 21:32:06 2021 +0000 |
| tree | 4bdac396ca186a374de6c86133ab1dd6dd7202b2 | |
| parent | 39a590dfb66db999ace422be51513c0f04939f09 [diff] |
Make half/bfloat16 constructor take inputs by value, fix powerpc test. Since `numeric_limits<half>::max_exponent` is a static inline constant, it cannot be directly passed by reference. This triggers a linker error in recent versions of `g++-powerpc64le`. Changing `half` to take inputs by value fixes this. Wrapping `max_exponent` with `int(...)` to make an addressable integer also fixes this and may help with other custom `Scalar` types down-the-road. Also eliminated some compile warnings for powerpc.
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.