From c3f34678cc9885205f573d3ed82ba30181200b41 Mon Sep 17 00:00:00 2001
From: joanvallve <jvallve@iri.upc.edu>
Date: Thu, 9 Apr 2020 17:48:08 +0200
Subject: [PATCH] matrix by reference

---
 include/gnss_utils/utils/transformations.h | 6 +++---
 src/utils/transformations.cpp              | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/gnss_utils/utils/transformations.h b/include/gnss_utils/utils/transformations.h
index caa22c4..10ddc0a 100644
--- a/include/gnss_utils/utils/transformations.h
+++ b/include/gnss_utils/utils/transformations.h
@@ -17,8 +17,8 @@ namespace GnssUtils
 {
 Eigen::Vector3d ecefToLatLonAlt(const Eigen::Vector3d& _ecef);
 Eigen::Vector3d latLonAltToEcef(const Eigen::Vector3d& _latlon);
-Eigen::Matrix3d ecefToEnuCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d _cov_ecef);
-Eigen::Matrix3d enuToEcefCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d _cov_enu);
+Eigen::Matrix3d ecefToEnuCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d& _cov_ecef);
+Eigen::Matrix3d enuToEcefCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d& _cov_enu);
 
 void computeEnuEcefFromEcef(const Eigen::Vector3d& _t_ECEF_ENU,
                             Eigen::Matrix3d&       R_ENU_ECEF,
@@ -28,4 +28,4 @@ void computeEnuEcefFromLatLonAlt(const Eigen::Vector3d& _ENU_latlonalt,
                                  Eigen::Vector3d&       t_ENU_ECEF);
 
 }  // namespace GnssUtils
-#endif  // INCLUDE_GNSS_UTILS_UTILS_TRANSFORMATIONS_H_
\ No newline at end of file
+#endif  // INCLUDE_GNSS_UTILS_UTILS_TRANSFORMATIONS_H_
diff --git a/src/utils/transformations.cpp b/src/utils/transformations.cpp
index 38097f5..8163967 100644
--- a/src/utils/transformations.cpp
+++ b/src/utils/transformations.cpp
@@ -21,7 +21,7 @@ Eigen::Vector3d latLonAltToEcef(const Eigen::Vector3d& _latlon)
   return ecef;
 }
 
-Eigen::Matrix3d ecefToEnuCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d _cov_ecef)
+Eigen::Matrix3d ecefToEnuCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d& _cov_ecef)
 {
   Eigen::Matrix3d cov_enu;
 
@@ -38,7 +38,7 @@ Eigen::Matrix3d ecefToEnuCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix
   return cov_enu;
 }
 
-Eigen::Matrix3d enuToEcefCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d _cov_enu)
+Eigen::Matrix3d enuToEcefCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d& _cov_enu)
 {
   Eigen::Matrix3d cov_ecef;
 
@@ -149,4 +149,4 @@ void computeEnuEcefFromLatLonAlt(const Eigen::Vector3d& _ENU_latlonalt,
   t_ENU_ECEF = -R_ENU_ECEF * t_ECEF_ENU;
 }
 
-}  // namespace GnssUtils
\ No newline at end of file
+}  // namespace GnssUtils
-- 
GitLab