From 66c242cbb6df2435417bc393a9bd1ae86cce7b99 Mon Sep 17 00:00:00 2001 From: atrayees <121290945+atrayees@users.noreply.github.com> Date: Fri, 19 Jul 2024 22:34:59 +0530 Subject: [PATCH] fix indentation --- test/sampling_correlation_matrices_test.cpp | 34 ++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/test/sampling_correlation_matrices_test.cpp b/test/sampling_correlation_matrices_test.cpp index 8083ad583..a17c36ce6 100644 --- a/test/sampling_correlation_matrices_test.cpp +++ b/test/sampling_correlation_matrices_test.cpp @@ -81,29 +81,29 @@ void check_output(PointList &randPoints, int num_points, int n){ template void check_output_MT(std::list &randCorMatrices, int num_points, int n){ - int d = n*(n-1)/2, count = 0; - MT A; - Eigen::LDLT mat_ldlt; - for(auto& mat : randCorMatrices){ - mat_ldlt = Eigen::LDLT(mat); + int d = n*(n-1)/2, count = 0; + MT A; + Eigen::LDLT mat_ldlt; + for(auto& mat : randCorMatrices){ + mat_ldlt = Eigen::LDLT(mat); if(mat_ldlt.info() == Eigen::NumericalIssue || !mat_ldlt.isPositive()){ - ++count; + ++count; } - } - std::cout << "Fails " << count << " / " << num_points << " samples\n"; - CHECK(count == 0); + } + std::cout << "Fails " << count << " / " << num_points << " samples\n"; + CHECK(count == 0); - MT samples(d, num_points); - unsigned int jj = 0; - for(const auto& mat : randCorMatrices){ - samples.col(jj) = getCoefficientsFromMatrix(mat); + MT samples(d, num_points); + unsigned int jj = 0; + for(const auto& mat : randCorMatrices){ + samples.col(jj) = getCoefficientsFromMatrix(mat); jj++; - } + } - VT score = univariate_psrf(samples); - std::cout << "psrf = " << score.maxCoeff() << std::endl; + VT score = univariate_psrf(samples); + std::cout << "psrf = " << score.maxCoeff() << std::endl; - CHECK(score.maxCoeff() < 1.1); + CHECK(score.maxCoeff() < 1.1); } template