Re: [eigen] operator== (and probably others) for 0-sized Eigen-types |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
+1 for this identity-based behavior. It's the only way to make them consistent under concatenation. - Bob On 11/11/13, 6:08 PM, Gael Guennebaud wrote:
On Mon, Nov 11, 2013 at 11:59 PM, Gael Guennebaud <gael.guennebaud@xxxxxxxxx <mailto: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/ |