Skip to content

Commit

Permalink
reference instead of value for matrix in jump-counter
Browse files Browse the repository at this point in the history
  • Loading branch information
lettis committed Dec 9, 2015
1 parent ad6882c commit 481d33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ namespace FastPCA {
}

unsigned int
_count_jumps_deg(Matrix<double> m, std::size_t i_col, double shift) {
_count_jumps_deg(const Matrix<double>& m, std::size_t i_col, double shift) {
unsigned int sum = 0;
for (std::size_t i=0; i < m.n_rows()-1; ++i) {
double theta1 = _periodic_shift_to_barrier_deg(m(i,i_col), shift);
Expand Down

0 comments on commit 481d33d

Please sign in to comment.