aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/Core/Dot.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/Core/Dot.h')
-rw-r--r--Eigen/Core/Dot.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Eigen/Core/Dot.h b/Eigen/Core/Dot.h
index ff6852af2..32cab5bbb 100644
--- a/Eigen/Core/Dot.h
+++ b/Eigen/Core/Dot.h
@@ -89,7 +89,8 @@ typename NumTraits<Scalar>::Real MatrixBase<Scalar, Derived>::norm() const
}
template<typename Scalar, typename Derived>
-ScalarMultiple<Derived> MatrixBase<Scalar, Derived>::normalized() const
+const ScalarMultiple<typename NumTraits<Scalar>::Real, Derived>
+MatrixBase<Scalar, Derived>::normalized() const
{
return (*this) / norm();
}