1019
2015-05-20 12:59:38 +0000
viewAsReal() method
2019-12-04 14:39:24 +0000
1
1
1
Unclassified
Eigen
Core - general
3.4 (development)
All
All
DECISIONNEEDED
Normal
Feature Request
---
1018
1712
1
chtz
eigen.nobody
chtz
gael.guennebaud
jacob.benoit.1
oldest_to_newest
4710
0
chtz
2015-05-20 12:59:38 +0000
I propose adding a viewAsReal() method, which returns for complex-valued matrices/vectors a matrix/vector of twice the size but with pure real values. I guess doubling the size in the direction of storage order would make most sense.
For real-valued matrices this would simply return itself.
Perhaps, the inverse of that would also make sense (this has to assert that the dimension is even, of course).
Bug 1018 could efficiently be solved by that.
4714
1
gael.guennebaud
2015-06-05 13:03:10 +0000
I'm ok with that.
For expressions with direct access and no custom inner-stride, this can be efficiently implemented on top of MapBase.
For general expression, I'm afraid we need a new one (similar to Block).
5547
2
chtz
2016-03-22 18:15:11 +0000
A point which just came up in an IRC discussion:
For both viewAsReal() and viewAsComplex() it is often ambiguous in which direction to expand/contract -- especially when the expression uses mixed Majorness sub-expressions (e.g. A+A.transpose()).
Perhaps using viewAsReal<RowMajor>() could expand to the side and viewAsReal<ColMajor>() to the bottom.
9463
3
eigen.nobody
2019-12-04 14:39:24 +0000
-- 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/1019.