Logical View

Hi,

Suppose that we have given a MatrixXd A.

If I want to view a sub matrix based on a logical condition such as

A(A.col(i).array() < 0.5, Eigen::all)

I will only ever see A.row(0) (false) and A.row(1) (true), which is surprising.

Furthermore, my application demands a fairly complex indicator function that I like to use instead.

Is there a solution that I do not see?

Cheers, Sebastian

Edited by sdall