This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 1231 - Regression on dev branch vs. 3.2: cwise division of complex by real doesn't compile
Summary: Regression on dev branch vs. 3.2: cwise division of complex by real doesn't c...
Status: RESOLVED FIXED
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: 3.3 (current stable)
Hardware: All All
: Normal Compilation Problem
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-18 18:50 UTC by Rasmus Munk Larsen
Modified: 2019-12-04 15:51 UTC (History)
3 users (show)



Attachments

Description Rasmus Munk Larsen 2016-05-18 18:50:44 UTC
The following no longer compiles:


#include <complex>
#include "Eigen/Core"

template <typename Scalar = double>
using Matrix = Eigen::Matrix<Scalar, Eigen::Dynamic, 1>;

Matrix<std::complex<double>> v;
Matrix<double> y;
v.setRandom(5);
y.setRandom(5);
v.array() /= y.array();



It hits the mixed type assert:

./third_party/eigen3/Eigen/src/Core/AssignEvaluator.h:778:3: error: static_assert failed "YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY"

This seems too strict and a clear regression.
Comment 1 Gael Guennebaud 2016-05-18 21:02:36 UTC
https://bitbucket.org/eigen/eigen/commits/6a6cc7eb0f54/
Comment 2 Nobody 2019-12-04 15:51:02 UTC
-- 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/1231.

Note You need to log in before you can comment on or make changes to this bug.