remove the MatrixConstXpr and MatrixConstRef classes.

Now the user doesn't need anymore to call .xpr() and can simply do:
matrix.row(i) += matrix.row(j)

Also remove the obsolete MatrixXpr::hasDynamicSize() method (thanks to
Michael Olbrich for reporting this).

CCMAIL:<michael.olbrich@gmx.net>
This commit is contained in:
Benoit Jacob
2007-09-09 08:15:48 +00:00
parent 506cc5db12
commit fe9b6b8f17
10 changed files with 224 additions and 317 deletions

View File

@@ -84,13 +84,13 @@ class Vector: public MatrixBase<Vector<T, Size> >
{ Base::operator=(other); }
template<typename XprContent>
void operator=(const MatrixConstXpr<XprContent> &xpr)
void operator=(const MatrixXpr<XprContent> &xpr)
{
Base::operator=(xpr);
}
template<typename XprContent>
explicit Vector(const MatrixConstXpr<XprContent>& xpr)
explicit Vector(const MatrixXpr<XprContent>& xpr)
{
*this = xpr;
}
@@ -131,13 +131,13 @@ class VectorX : public MatrixBase<VectorX<T> >
}
template<typename XprContent>
void operator=(const MatrixConstXpr<XprContent> &xpr)
void operator=(const MatrixXpr<XprContent> &xpr)
{
Base::operator=(xpr);
}
template<typename XprContent>
explicit VectorX(const MatrixConstXpr<XprContent>& xpr)
explicit VectorX(const MatrixXpr<XprContent>& xpr)
{
_init(xpr.rows());
*this = xpr;