aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/src/MatrixFunctions
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2013-08-27 15:41:18 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2013-08-27 15:41:18 +0200
commit86daf2f75c08b2236fc3d657292aeee600f26a12 (patch)
treeb378fd6061a75630ac2bc950748a238d386ee291 /unsupported/Eigen/src/MatrixFunctions
parent69c057ccb17ec77fcfc4b72795bdf2494b1313a8 (diff)
Added missing inline statements in order to prevent linker errors.
Diffstat (limited to 'unsupported/Eigen/src/MatrixFunctions')
-rw-r--r--unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h b/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h
index 6248eeec7..d46ccc145 100644
--- a/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h
+++ b/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h
@@ -66,7 +66,7 @@ void matrix_log_compute_2x2(const MatrixType& A, MatrixType& result)
}
/* \brief Get suitable degree for Pade approximation. (specialized for RealScalar = float) */
-int matrix_log_get_pade_degree(float normTminusI)
+inline int matrix_log_get_pade_degree(float normTminusI)
{
const float maxNormForPade[] = { 2.5111573934555054e-1 /* degree = 3 */ , 4.0535837411880493e-1,
5.3149729967117310e-1 };
@@ -80,7 +80,7 @@ int matrix_log_get_pade_degree(float normTminusI)
}
/* \brief Get suitable degree for Pade approximation. (specialized for RealScalar = double) */
-int matrix_log_get_pade_degree(double normTminusI)
+inline int matrix_log_get_pade_degree(double normTminusI)
{
const double maxNormForPade[] = { 1.6206284795015624e-2 /* degree = 3 */ , 5.3873532631381171e-2,
1.1352802267628681e-1, 1.8662860613541288e-1, 2.642960831111435e-1 };
@@ -94,7 +94,7 @@ int matrix_log_get_pade_degree(double normTminusI)
}
/* \brief Get suitable degree for Pade approximation. (specialized for RealScalar = long double) */
-int matrix_log_get_pade_degree(long double normTminusI)
+inline int matrix_log_get_pade_degree(long double normTminusI)
{
#if LDBL_MANT_DIG == 53 // double precision
const long double maxNormForPade[] = { 1.6206284795015624e-2L /* degree = 3 */ , 5.3873532631381171e-2L,