add a DenseBase class for MAtrixBase and ArrayBase and more code factorisation

This commit is contained in:
Gael Guennebaud
2009-12-04 23:17:14 +01:00
parent 80ebeae48d
commit 8e05f9cfa1
47 changed files with 1578 additions and 944 deletions

View File

@@ -279,8 +279,8 @@ template<typename Derived>
template<typename OtherScalar>
inline void MatrixBase<Derived>::applyOnTheLeft(int p, int q, const PlanarRotation<OtherScalar>& j)
{
RowXpr x(row(p));
RowXpr y(row(q));
RowXpr x(this->row(p));
RowXpr y(this->row(q));
ei_apply_rotation_in_the_plane(x, y, j);
}
@@ -294,8 +294,8 @@ template<typename Derived>
template<typename OtherScalar>
inline void MatrixBase<Derived>::applyOnTheRight(int p, int q, const PlanarRotation<OtherScalar>& j)
{
ColXpr x(col(p));
ColXpr y(col(q));
ColXpr x(this->col(p));
ColXpr y(this->col(q));
ei_apply_rotation_in_the_plane(x, y, j.transpose());
}