Default eigen_packet_wrapper constructor.

This makes it trivial, allowing use of `memcpy`.

Fixes #2326

(cherry picked from commit cb507309937958c632147de87e8f1231d6698847)
This commit is contained in:
Antonio Sanchez 2021-09-14 10:57:22 -07:00 committed by C. Antonio Sanchez
parent 7b378c2d91
commit 526a6328e2

View File

@ -160,7 +160,7 @@ struct eigen_packet_wrapper
{
EIGEN_ALWAYS_INLINE operator T&() { return m_val; }
EIGEN_ALWAYS_INLINE operator const T&() const { return m_val; }
EIGEN_ALWAYS_INLINE eigen_packet_wrapper() {}
EIGEN_ALWAYS_INLINE eigen_packet_wrapper() = default;
EIGEN_ALWAYS_INLINE eigen_packet_wrapper(const T &v) : m_val(v) {}
EIGEN_ALWAYS_INLINE eigen_packet_wrapper& operator=(const T &v) {
m_val = v;