Registered Member
|
Does this syntax:
Could replace the currently explicit one:
There are two advantages: [*] Easier to access - Foo::Nested<Times> instead of internal::ei_nested<Foo, Times>::type [*] Easier to maintain As you might see, the style was taken from from C++ Allocator concept rebind<U>::other Do you think it should be used in future Eigen versions? |
Moderator
|
hm, ei_nested was for Eigen2 which is rather outdated! It does not exist in Eigen3.x. See also this entry for some old discussions on this topic: http://eigen.tuxfamily.org/bz/show_bug.cgi?id=111
|
Registered Member
|
Your claims conflict with this page: (something doesn't making sense for me) http://eigen.tuxfamily.org/index.php?ti ... umentation If this page is outdated too, what is the correct way now? |
Moderator
|
oh, I was not aware of this page, and indeed it is completely outdated! In the default branch, you should use internal::nested_eval<XprType,N>::type.
|
Registered Member
|
Please notice that the top two links in this wiki page are invalid. IMHO, they should refer to: http://eigen.tuxfamily.org/dox-devel/To ... nType.html Thanks! |
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar