Skip to content

Commit 22111fc

Browse files
authored
fix indentation
1 parent 64a4c56 commit 22111fc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

examples/correlation_matrices/sampler.cpp

+10-10
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ Spectrahedron<Point> prepare_input(int n){
6262

6363
template<typename NT, typename MT>
6464
Eigen::Matrix<NT, Eigen::Dynamic, 1> getCoefficientsFromMatrix(const MT& mat) {
65-
int n = mat.rows();
66-
int d = n * (n - 1) / 2;
67-
Eigen::Matrix<NT, Eigen::Dynamic, 1> coeffs(d);
68-
int k = 0;
69-
for (int i = 0; i < n; ++i) {
70-
for (int j = 0; j < i; ++j) {
71-
coeffs(k) = mat(i, j);
72-
++k;
65+
int n = mat.rows();
66+
int d = n * (n - 1) / 2;
67+
Eigen::Matrix<NT, Eigen::Dynamic, 1> coeffs(d);
68+
int k = 0;
69+
for (int i = 0; i < n; ++i) {
70+
for (int j = 0; j < i; ++j) {
71+
coeffs(k) = mat(i, j);
72+
++k;
7373
}
74-
}
75-
return coeffs;
74+
}
75+
return coeffs;
7676
}
7777

7878
template<typename WalkType>

0 commit comments

Comments
 (0)