File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ namespace cp_algo::math {
54
54
55
55
poly_t substr (size_t l, size_t k) const {return poly::impl::substr (*this , l, k);}
56
56
57
- poly_t operator *= (const poly_t &t) {fft::mul (a, t.a ); normalize (); return *this ;}
57
+ poly_t & operator *= (const poly_t &t) {fft::mul (a, t.a ); normalize (); return *this ;}
58
58
poly_t operator * (const poly_t &t) const {return poly_t (*this ) *= t;}
59
59
60
60
poly_t & operator /= (const poly_t &t) {return *this = divmod (t)[0 ];}
@@ -193,7 +193,7 @@ namespace cp_algo::math {
193
193
}
194
194
195
195
// calculate log p(x) mod x^n
196
- poly_t log_inplace (size_t n) {
196
+ poly_t & log_inplace (size_t n) {
197
197
assert (a[0 ] == T (1 ));
198
198
auto t = mod_xk_inplace (n).inv (n);
199
199
deriv_inplace ();
You can’t perform that action at this time.
0 commit comments