Summary: | rowwise().mean() gives wrong results for Scalar = std::complex<double> | ||
---|---|---|---|
Product: | Eigen | Reporter: | Rasmus Munk Larsen <rmlarsen> |
Component: | Core - general | Assignee: | Nobody <eigen.nobody> |
Status: | RESOLVED FIXED | ||
Severity: | Wrong Result | CC: | chtz, gael.guennebaud, jacob.benoit.1, rmlarsen |
Priority: | Normal | ||
Version: | 3.4 (development) | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Rasmus Munk Larsen
2018-10-15 19:06:52 UTC
FYI: I get the same result compiling in optimized and debug mode. this only occurs with double (fine with complex<float>), and the error is already there with with .sum(). Looks like an issue when vectorizating with PacketSize==1 quick fix, by-pass vectorization in this special case: https://bitbucket.org/eigen/eigen/commits/a79aa7f2f56e/ Summary: Bug 1612: fix regression in "outer-vectorization" of partial reductions for PacketSize==1 (aka complex<double>) Thanks for the quick fix, Gael! -- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1612. |