Re: [eigen] two decisions to take |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] two decisions to take*From*: Andre Krause <post@xxxxxxxxxxxxxxxx>*Date*: Tue, 04 Sep 2007 21:33:27 +0200*Organization*: http://www.coreloop.com

Benoît Jacob wrote:

On Tuesday 04 September 2007 19:47:18 Schleimer, Ben wrote:I disagree. I think that eigen2 should be using methods instead of global functions because it's a C++ toolkit.It's not a big deal adding member functions. In Eigen1 we allowed bothdot(v,w) and v.dot(w), so I think we'll do the same in Eigen2, since thereseems to be strong advocates of both approaches :)

FYI I've implemented the matrix-matrix and matrix-vector operator* as aglobal, and I don't think this is a problem since as Andre said the compilerwill resolve that overloading and call this operator* only when appropriate.or better: double zLen = x^y*n*3; (the ^ is the cross operator and the * is the dot operator. For vectors not of dim3, ^ should be the wedge operator)I won't give operator* the additional meaning of dot product. It already has 4meanings (matrix-matrix, matrix-vector, matrix-scalar, vector-scalarproducts), this is enough!

I agree with the operator^ for cross product, actually I proposed it one yearago on #eigen for Eigen1 but someone objected. I don't remember what theobjection was.If we go for operator^ for cross product, then I suggest operator| for dotproduct. This is classical mathematical notation, especially in quantummechanics (Dirac's "bras" and "kets").

kind regards, andre!

**Follow-Ups**:**Re: [eigen] two decisions to take***From:*Benoît Jacob

**References**:**Re: [eigen] two decisions to take***From:*Schleimer, Ben

**Re: [eigen] two decisions to take***From:*Benoît Jacob

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] two decisions to take** - Next by Date:
**Re: [eigen] two decisions to take** - Previous by thread:
**Re: [eigen] two decisions to take** - Next by thread:
**Re: [eigen] two decisions to take**

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