diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-08-07 20:05:31 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-08-07 20:05:31 +0200 |
commit | febcce34f1a5cabc3f4d92b52f7520b8a5e681f4 (patch) | |
tree | c4fae0a6f9cc41e95209da9997a0dd5e31b435f6 /Eigen/src/Core/Matrix.h | |
parent | 6245591349bdf013bc421e6887d98164cdd15cd0 (diff) |
Enable vectorization with half-packets
Diffstat (limited to 'Eigen/src/Core/Matrix.h')
-rw-r--r-- | Eigen/src/Core/Matrix.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Eigen/src/Core/Matrix.h b/Eigen/src/Core/Matrix.h index b7c90ae16..7221d89a6 100644 --- a/Eigen/src/Core/Matrix.h +++ b/Eigen/src/Core/Matrix.h @@ -141,7 +141,8 @@ struct traits<Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols> > { private: // TODO find ideal packet size - typedef typename packet_traits<_Scalar>::type PacketScalar; + enum { size = internal::size_at_compile_time<_Rows,_Cols>::ret }; + typedef typename find_best_packet<_Scalar,size>::type PacketScalar; enum { row_major_bit = _Options&RowMajor ? RowMajorBit : 0, is_dynamic_size_storage = _MaxRows==Dynamic || _MaxCols==Dynamic, |