aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/SSE/Complex.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-08-19 14:47:58 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-08-19 14:47:58 +0200
commitd4b664c4cdcbfd5d4fe4cfbb59c1d6e735b3e469 (patch)
tree0c9bc7ae498b480b58c13f749dd40447669478db /Eigen/src/Core/arch/SSE/Complex.h
parent5354ffbb4f4d8db29097dba729da64be82b1f7b2 (diff)
fix ugly conversion from double[2] to complex
Diffstat (limited to 'Eigen/src/Core/arch/SSE/Complex.h')
-rw-r--r--Eigen/src/Core/arch/SSE/Complex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/SSE/Complex.h b/Eigen/src/Core/arch/SSE/Complex.h
index 585630563..819d59364 100644
--- a/Eigen/src/Core/arch/SSE/Complex.h
+++ b/Eigen/src/Core/arch/SSE/Complex.h
@@ -308,7 +308,7 @@ template<> EIGEN_STRONG_INLINE std::complex<double> ei_pfirst<Packet1cd>(const
{
EIGEN_ALIGN16 double res[2];
_mm_store_pd(res, a.v);
- return *(std::complex<double>*)res;
+ return std::complex<double>(res[0],res[1]);
}
template<> EIGEN_STRONG_INLINE Packet1cd ei_preverse(const Packet1cd& a) { return a; }