[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] VectorBase issue
- From: "Gael Guennebaud" <gael.guennebaud@xxxxxxxxx>
- Date: Tue, 3 Jun 2008 10:30:52 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=rpTaV3K5RK2W++hudAvexlMKFfcuqv97jQI2mHPi0fU=; b=MmwNVmzu3f0n2+Tjuy+A5Qp6slONAp5lOEM2jWwYaVQhd45Rwe/zKSC6krWTI2zyheT3mm+635jTs9NPUAImgfCcCAORUG3HcV9cPGjQFtbH+RehIl4gjXj2uMUbNLwKFYVK9/ML27rcdBiCcvB4Aeuxc2ZDwWREyNQFMAHiTpo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Ryh0Pf8XjGsfGrf3VMwvXkTeedDanokrFKh6G1z6HGC8oDy87roWqBEexgBCGmlbF878kaHnllMmjhGHm8/UsIY/4bejTuzaCDTjAhblQl5fpOIFj3CYdv+ewIqdzdOzStj17w7pMEGEv69kHIJGQg8+p6GLxTdmJNS4oXz6sLk=
Hi list,
In order to properly discard vector specific features to the rest of the API I tried to add a templated VecorBase base class from which MatrixBase would automatically inherit if the _expression_ is indeed a vector:
template<typename Derived> class MatrixBase
: public VectorBase<Derived> { /*common API*/ };
template<typename Derived,
bool IsVector=Derived:IsVector> class VectorBase { /*empty*/ };