summaryrefslogtreecommitdiff
path: root/test/math/transforms/fftMul.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/math/transforms/fftMul.cpp')
-rw-r--r--test/math/transforms/fftMul.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/math/transforms/fftMul.cpp b/test/math/transforms/fftMul.cpp
index 5933864..7887a5e 100644
--- a/test/math/transforms/fftMul.cpp
+++ b/test/math/transforms/fftMul.cpp
@@ -5,21 +5,21 @@
#include <math/transforms/fftMul.cpp>
vector<ll> from_cplx(const vector<cplx>& in) {
- vector<ll> res(sz(in));
- for (int i = 0; i < sz(in); i++) res[i] = llround(real(in[i]));
+ vector<ll> res(ssize(in));
+ for (int i = 0; i < ssize(in); i++) res[i] = llround(real(in[i]));
return res;
}
vector<ll> naive(const vector<ll>& a, const vector<ll>& b) {
vector<ll> res;
for (ll i = 1;; i *= 2) {
- if (sz(a) + sz(b) <= i) {
+ if (ssize(a) + ssize(b) <= i) {
res.resize(i, 0);
break;
}
}
- for (int i = 0; i < sz(a); i++) {
- for (int j = 0; j < sz(b); j++) {
+ for (int i = 0; i < ssize(a); i++) {
+ for (int j = 0; j < ssize(b); j++) {
res[i+j] += a[i] * b[j];
}
}