aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/DiagonalMatrix.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/DiagonalMatrix.h')
-rw-r--r--Eigen/src/Core/DiagonalMatrix.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h
index 6cfd910c6..90683e6bc 100644
--- a/Eigen/src/Core/DiagonalMatrix.h
+++ b/Eigen/src/Core/DiagonalMatrix.h
@@ -45,7 +45,7 @@ class DiagonalMatrix : NoOperatorEquals,
{
public:
typedef typename CoeffsVectorType::Scalar Scalar;
- typedef typename CoeffsVectorType::Ref CoeffsVecRef;
+ typedef typename CoeffsVectorType::AsArg CoeffsVecRef;
friend class MatrixBase<Scalar, DiagonalMatrix>;
friend class MatrixBase<Scalar, DiagonalMatrix>::Traits;
typedef MatrixBase<Scalar, DiagonalMatrix> Base;
@@ -64,7 +64,7 @@ class DiagonalMatrix : NoOperatorEquals,
MaxColsAtCompileTime = CoeffsVectorType::Traits::MaxSizeAtCompileTime
};
- const DiagonalMatrix& _ref() const { return *this; }
+ const DiagonalMatrix& _asArg() const { return *this; }
int _rows() const { return m_coeffs.size(); }
int _cols() const { return m_coeffs.size(); }
@@ -90,7 +90,7 @@ template<typename Scalar, typename Derived>
const DiagonalMatrix<Derived>
MatrixBase<Scalar, Derived>::asDiagonal() const
{
- return DiagonalMatrix<Derived>(ref());
+ return DiagonalMatrix<Derived>(asArg());
}
/** \returns true if *this is approximately equal to a diagonal matrix,