From 54980fd64c2db3539ee65558e84bcf18309a2cff Mon Sep 17 00:00:00 2001 From: jeffinsam Date: Tue, 16 Apr 2019 18:51:29 +0530 Subject: [PATCH] resolving style issues --- src/mlpack/core/math/ccov_impl.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mlpack/core/math/ccov_impl.hpp b/src/mlpack/core/math/ccov_impl.hpp index 0ba47b941e..6d6fdbfa99 100644 --- a/src/mlpack/core/math/ccov_impl.hpp +++ b/src/mlpack/core/math/ccov_impl.hpp @@ -33,20 +33,21 @@ ColumnCovariance(const arma::Mat& A, const size_t norm_type) if (A.n_elem > 0) { const arma::Mat& AA = (A.n_cols == 1) - ? arma::Mat(const_cast(A.memptr()), A.n_cols, A.n_rows, false, false) - : arma::Mat(const_cast(A.memptr()), A.n_rows, A.n_cols, false, false); + ? arma::Mat(const_cast(A.memptr()), A.n_cols, A.n_rows, false, + false) : arma::Mat(const_cast(A.memptr()), A.n_rows, A.n_cols, + false, false); const size_t N = AA.n_cols; const eT norm_val = (norm_type == 0) ? ( (N > 1) ? eT(N-1) : eT(1) ) : eT(N); - const arma::Mat tmp = AA.each_col() - arma::mean(AA,1); + const arma::Mat tmp = AA.each_col() - arma::mean(AA, 1); out = tmp * tmp.t(); out /= norm_val; } - return out; + return out; } template