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

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] operator== (and probably others) for 0-sized Eigen-types*From*: Bob Carpenter <carp@xxxxxxxxxxx>*Date*: Mon, 11 Nov 2013 18:16:26 -0500

+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

**References**:**[eigen] operator== (and probably others) for 0-sized Eigen-types***From:*Daniel.Vollmer

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

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

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] operator== (and probably others) for 0-sized Eigen-types** - Next by Date:
**Re: [eigen] operator== (and probably others) for 0-sized Eigen-types** - Previous by thread:
**Re: [eigen] operator== (and probably others) for 0-sized Eigen-types** - Next by thread:
**Re: [eigen] operator== (and probably others) for 0-sized Eigen-types**

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