Small vector and matrix proposed for phobos2 now on github

"Jérôme M. Berger" jeberger at free.fr
Tue Apr 27 10:35:06 PDT 2010


Gareth Charnock wrote:
> PS: Okay so I just had a looked at the matrix and vector classes in
> Ogre3D and irrlicht. Looks like they both define v*v as element wise
> multiplication but m*m is matrix multiplication. That just seems even
> more inconsistent.

	Eigen (http://eigen.tuxfamily.org/ ) uses '*' for the matrix
multiplication. v*v is an error (incompatible shapes). Element wise
operations can be done like this: v.cwise()*v

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20100427/33cd2f55/attachment.pgp>


More information about the Digitalmars-d-announce mailing list