Hi, unfortunately, it is not possible to use boolean operators on boolean expressions. It would be great to allow something such as: x = (x>0 & y>0).select(x, 0); // or &&? This issue can be worked around by: x = (y>0).select((x>0).select(x, 0), 0); but adding boolean operators would make code a lot more readable. Or maybe even faster? (possibly blocks or is blocked by bug 97)
This is possible since this 2 years old commit: https://bitbucket.org/eigen/eigen/commits/46509beb6fca375b94273a2fe48474b3d0c4cef2
Sorry for the late answer, the notification was filtered out as spam. I see, thanks. Isn't using the short-circuit operators confusing here? That's why I didn't find this functionality, since I didn't expect && to be used for something that doesn't short-circuit.
-- 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/272.