diff -up ./libs/base/include/mrpt/math/ops_containers.h.gcc12 ./libs/base/include/mrpt/math/ops_containers.h
--- ./libs/base/include/mrpt/math/ops_containers.h.gcc12 2016-04-21 18:55:39.000000000 -0400
+++ ./libs/base/include/mrpt/math/ops_containers.h 2022-04-17 22:06:41.430328212 -0400
@@ -302,7 +302,7 @@ namespace mrpt
for (size_t i=0;i<N;i++)
for (size_t j=0;j<M;j++)
out_mean[j]+=v[i][j];
- out_mean*=N_inv;
+ out_mean= out_mean * N_inv;
// Second: Compute the covariance
// Save only the above-diagonal part, then after averaging
@@ -320,7 +320,7 @@ namespace mrpt
for (size_t j=0;j<M;j++)
for (size_t k=j+1;k<M;k++)
out_cov.get_unsafe(k,j) = out_cov.get_unsafe(j,k);
- out_cov*=N_inv;
+ out_cov= out_cov * N_inv;
}
/** Computes the covariance matrix from a list of values given as a vector of vectors, where each row is a sample.
@@ -332,7 +332,7 @@ namespace mrpt
template<class VECTOR_OF_VECTOR, class RETURN_MATRIX>
inline RETURN_MATRIX covVector( const VECTOR_OF_VECTOR &v )
{
- std::vector<double> m;
+ CVectorDouble m;
RETURN_MATRIX C;
meanAndCovVec(v,m,C);
return C;