Broadcasting with elementwise division
Submitted by Johan Pauwels
Assigned to Nobody
Link to original bugzilla bug (#151)
Version: 3.0
Description
The given piece of code does not compile with when using the most recent commit. It does compile when replacing the division by an addition.
#include <iostream>
#include <Eigen/Core>
int main()
{
Eigen::ArrayXXi a(2,4);
a << 1, 2, 3, 4, 5, 6, 7, 8;
Eigen::ArrayXXd b = a.cast<double>().colwise() /
a.cast<double>().rowwise().sum();
return 0;
}
Edited by Eigen Bugzilla