This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 1730 - Inconsistent behaviour when multiplying CWiseUnaryViews
Summary: Inconsistent behaviour when multiplying CWiseUnaryViews
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - matrix products (show other bugs)
Version: 3.3 (current stable)
Hardware: All All
: Normal Compilation Problem
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-11 06:36 UTC by Andrew Johnson
Modified: 2019-12-04 18:42 UTC (History)
3 users (show)



Attachments

Description Andrew Johnson 2019-07-11 06:36:18 UTC
Initially discussed on SO [here](https://stackoverflow.com/questions/56635122/using-coeffref-with-const-cwiseunaryview-failing-when-multiplying-two-cwiseuna)

Compilation errors occur when attempting to multiplying two CWiseUnaryViews together, but only under particular constructions.

Given a view that simply returns the same matrix, the compilation fails with an error about ```coefReff``` : [https://godbolt.org/z/JYQb3d](https://godbolt.org/z/JYQb3d)

Given a view that returns the double from a struct nested in another struct, the compilation fails unless the intermediary struct also contains a double: [https://godbolt.org/z/7nvhqx](https://godbolt.org/z/7nvhqx)

However, this intermediary double isn't required if the nested value to be returned is a float: [https://godbolt.org/z/GJUZ41](https://godbolt.org/z/GJUZ41)
Comment 1 Andrew Johnson 2019-07-11 06:39:49 UTC
The formatting for the links hasn't gone well, here they are again:

Given a view that simply returns the same matrix, the compilation fails with an error about ```coefReff``` : https://godbolt.org/z/JYQb3d

Given a view that returns the double from a struct nested in another struct, the compilation fails unless the intermediary struct also contains a double: https://godbolt.org/z/7nvhqx

However, this intermediary double isn't required if the nested value to be returned is a float: https://godbolt.org/z/GJUZ41
Comment 2 Nobody 2019-12-04 18:42:30 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/1730.

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