Re: [eigen] two things

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Benoît Jacob schrieb:
> Hi,
> 
> 1) we had a debate about introducing a separate Vector class recently, but 
> since then I realized that it would increase the number of instantiations as 
> Vector<n> and Matrix<n,1> would be considered as two separate types. Hence 
> having vector currently implemented as a special case of matrix, is in fact 
> an optimization. I'm tempted to say that this outweighs the scariness of 
> Matrix constructors, hence we can bury the idea of Vector class. ok?

A vector is exactly the same as a Matrix<n,1> (or Matrix<1,n>...). So
*don't* offer a diffent type for it.

It might be good to offer an alias (i.e. typedef) for it. And it might
make sense to specialize that case. But leave those types identical.

CU,
Christian


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIYrPWoWM1JLkHou0RCOEZAJ9mY2/fTMP8mhjRIVC6hn55hVLmmQCfZJJE
n3DFbaZQZkhrubyW3inKDIU=
=WikD
-----END PGP SIGNATURE-----



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