mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user