From 24eac7df215443238044222f2b16f74fde82bddd Mon Sep 17 00:00:00 2001 From: atrayees <121290945+atrayees@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:44:48 +0530 Subject: [PATCH] reuse getcoefficientsfrommatrix() --- examples/correlation_matrices/sampler.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/examples/correlation_matrices/sampler.cpp b/examples/correlation_matrices/sampler.cpp index 5c8e96df1..b2c4891dd 100644 --- a/examples/correlation_matrices/sampler.cpp +++ b/examples/correlation_matrices/sampler.cpp @@ -60,21 +60,6 @@ Spectrahedron prepare_input(int n){ return spectra; } -template -Eigen::Matrix getCoefficientsFromMatrix(const MT& mat) { - int n = mat.rows(); - int d = n * (n - 1) / 2; - Eigen::Matrix coeffs(d); - int k = 0; - for (int i = 0; i < n; ++i) { - for (int j = 0; j < i; ++j) { - coeffs(k) = mat(i, j); - ++k; - } - } - return coeffs; -} - template void old_uniform_sampling(const unsigned int n, const unsigned int num_points){