From 9816e8532ef40986e549a201bf7f0f774305501d Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 12 Apr 2013 15:26:55 +0200 Subject: Fix bug #482: pass scalar value by const reference (it remained a few cases) --- Eigen/src/Core/SelfAdjointView.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Eigen/src/Core/SelfAdjointView.h') diff --git a/Eigen/src/Core/SelfAdjointView.h b/Eigen/src/Core/SelfAdjointView.h index 82cc4da73..d43789123 100644 --- a/Eigen/src/Core/SelfAdjointView.h +++ b/Eigen/src/Core/SelfAdjointView.h @@ -132,7 +132,7 @@ template class SelfAdjointView * \sa rankUpdate(const MatrixBase&, Scalar) */ template - SelfAdjointView& rankUpdate(const MatrixBase& u, const MatrixBase& v, Scalar alpha = Scalar(1)); + SelfAdjointView& rankUpdate(const MatrixBase& u, const MatrixBase& v, const Scalar& alpha = Scalar(1)); /** Perform a symmetric rank K update of the selfadjoint matrix \c *this: * \f$ this = this + \alpha ( u u^* ) \f$ where \a u is a vector or matrix. @@ -145,7 +145,7 @@ template class SelfAdjointView * \sa rankUpdate(const MatrixBase&, const MatrixBase&, Scalar) */ template - SelfAdjointView& rankUpdate(const MatrixBase& u, Scalar alpha = Scalar(1)); + SelfAdjointView& rankUpdate(const MatrixBase& u, const Scalar& alpha = Scalar(1)); /////////// Cholesky module /////////// -- cgit v1.2.3