This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 151 - Broadcasting with elementwise division
Summary: Broadcasting with elementwise division
Status: RESOLVED DUPLICATE of bug 157
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: 3.0
Hardware: All All
: --- enhancement
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-11 18:29 UTC by Johan Pauwels
Modified: 2019-12-04 10:09 UTC (History)
3 users (show)



Attachments

Description Johan Pauwels 2011-01-11 18:29:37 UTC
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;
}
Comment 1 Kibeom Kim 2011-11-11 19:29:49 UTC

*** This bug has been marked as a duplicate of bug 127 ***
Comment 2 Kibeom Kim 2011-11-11 19:31:05 UTC
Attached VectorwiseOp.h at #157 fixes this.

*** This bug has been marked as a duplicate of bug 157 ***
Comment 3 Nobody 2019-12-04 10:09:23 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/151.

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