Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 22e22f3

Browse files
committedApr 21, 2025·
update
1 parent f68925a commit 22e22f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎cp-algo/math/cvector.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ namespace cp_algo::math::fft {
147147
for(size_t i = flen; i <= n / 2; i *= 2) {
148148
exec_on_evals(n / (2 * i), [&](size_t k, point rt) {
149149
k *= 2 * i;
150-
vpoint vrt = {real(rt), imag(rt)};
150+
vpoint cvrt = {real(rt), -imag(rt)};
151151
for(size_t j = k; j < k + i; j += flen) {
152152
auto A = get<vpoint>(j) + get<vpoint>(j + i);
153153
auto B = get<vpoint>(j) - get<vpoint>(j + i);
154154
set(j, A);
155-
set(j + i, B * conj(vrt));
155+
set(j + i, B * cvrt);
156156
}
157157
});
158158
}

0 commit comments

Comments
 (0)
Please sign in to comment.