aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/matrix_power.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2013-08-02 21:07:39 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2013-08-02 21:07:39 +0200
commit51b361b3bb40d547ecf39e4c2e90a806c56c9751 (patch)
tree603f48614f5973dd6ef006746bc66fa66807c81a /unsupported/test/matrix_power.cpp
parent7c99b38b7c34c5a031e347b81277e67ab9cfdd93 (diff)
Ensure that (potentially aligned) stack objects are passed by reference.
Diffstat (limited to 'unsupported/test/matrix_power.cpp')
-rw-r--r--unsupported/test/matrix_power.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/test/matrix_power.cpp b/unsupported/test/matrix_power.cpp
index 4c4cac509..58644f84b 100644
--- a/unsupported/test/matrix_power.cpp
+++ b/unsupported/test/matrix_power.cpp
@@ -97,7 +97,7 @@ void testGeneral(const MatrixType& m, double tol)
}
template<typename MatrixType>
-void testSingular(MatrixType m, double tol)
+void testSingular(const MatrixType& m, double tol)
{
const int IsComplex = NumTraits<typename internal::traits<MatrixType>::Scalar>::IsComplex;
typedef typename internal::conditional<IsComplex, TriangularView<MatrixType,Upper>, const MatrixType&>::type TriangularType;
@@ -126,7 +126,7 @@ void testSingular(MatrixType m, double tol)
}
template<typename MatrixType>
-void testLogThenExp(MatrixType m, double tol)
+void testLogThenExp(const MatrixType& m, double tol)
{
typedef typename MatrixType::Scalar Scalar;
Scalar x;