Skip to content

Commit ebe9752

Browse files
committed
const& for semicorr, corr
1 parent 7e31773 commit ebe9752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cp-algo/math/poly.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,12 @@ namespace cp_algo::math {
499499
}
500500

501501
// [x^k] (a corr b) = sum_{i} a{(k-m)+i}*bi
502-
static poly_t corr(poly_t a, poly_t b) { // cross-correlation
502+
static poly_t corr(poly_t const& a, poly_t const& b) { // cross-correlation
503503
return a * b.reverse();
504504
}
505505

506506
// [x^k] (a semicorr b) = sum_i a{i+k} * b{i}
507-
static poly_t semicorr(poly_t a, poly_t b) {
507+
static poly_t semicorr(poly_t const& a, poly_t const& b) {
508508
return corr(a, b).div_xk(b.deg());
509509
}
510510

0 commit comments

Comments
 (0)