Re: [eigen] operator== (and probably others) for 0-sized Eigen-types

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]



On Mon, Nov 11, 2013 at 11:59 PM, Gael Guennebaud <gael.guennebaud@xxxxxxxxx> wrote:
One option could be to make .all() and .any() returns the identity element of the operators && and || respectively, i.e., true and false.

this is what octave/matlab do:

octave:6> A = []
A = [](0x0)
octave:7> any(A)
ans = 0
octave:8> all(A)
ans =  1


gael



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/