mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Default eigen_packet_wrapper constructor.
This makes it trivial, allowing use of `memcpy`. Fixes #2326
This commit is contained in:
parent
a751225845
commit
cb50730993
@ -162,7 +162,7 @@ struct eigen_packet_wrapper
|
|||||||
{
|
{
|
||||||
EIGEN_ALWAYS_INLINE operator T&() { return m_val; }
|
EIGEN_ALWAYS_INLINE operator T&() { return m_val; }
|
||||||
EIGEN_ALWAYS_INLINE operator const T&() const { 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(const T &v) : m_val(v) {}
|
||||||
EIGEN_ALWAYS_INLINE eigen_packet_wrapper& operator=(const T &v) {
|
EIGEN_ALWAYS_INLINE eigen_packet_wrapper& operator=(const T &v) {
|
||||||
m_val = v;
|
m_val = v;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user