Skip to content

Commit b9a76f2

Browse files
committed
Fixes
1 parent 3728832 commit b9a76f2

20 files changed

+23
-23
lines changed

cp-algo/linalg/frobenius.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace cp_algo::linalg {
2525
}
2626
y.normalize();
2727
if(vec<base>(y[std::slice(0, n, 1)]) == vec<base>(n)) {
28-
return polyn(std::vector<base>(begin(y) + n, end(y)));
28+
return polyn(polyn::Vector(begin(y) + n, end(y)));
2929
} else {
3030
basis_init.push_back(x);
3131
basis.push_back(y);

verify/poly/convolution107.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using base = modint<mod>;
1313
void solve() {
1414
int n, m;
1515
cin >> n >> m;
16-
vector<base> a(n), b(m);
16+
vector<base, cp_algo::big_alloc<base>> a(n), b(m);
1717
copy_n(istream_iterator<base>(cin), n, begin(a));
1818
copy_n(istream_iterator<base>(cin), m, begin(b));
1919
fft::mul(a, b);

verify/poly/div.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using polyn = poly_t<base>;
1313
void solve() {
1414
int n, m;
1515
cin >> n >> m;
16-
vector<base> a(n), b(m);
16+
polyn::Vector a(n), b(m);
1717
copy_n(istream_iterator<base>(cin), n, begin(a));
1818
copy_n(istream_iterator<base>(cin), m, begin(b));
1919
auto [q, r] = polyn(a).divmod(b);

verify/poly/exp.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using polyn = poly_t<base>;
1414
void solve() {
1515
int n;
1616
cin >> n;
17-
vector<base> a(n);
17+
polyn::Vector a(n);
1818
copy_n(istream_iterator<base>(cin), n, begin(a));
1919
polyn(a).exp_inplace(n).print(n);
2020
}

verify/poly/find_linrec.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using polyn = poly_t<base>;
1313
void solve() {
1414
int n;
1515
cin >> n;
16-
vector<base> a(n);
16+
polyn::Vector a(n);
1717
copy_n(istream_iterator<base>(cin), n, begin(a));
1818
auto Q = polyn(a).min_rec(n);
1919
int d = Q.deg();

verify/poly/inter.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using polyn = poly_t<base>;
1313
void solve() {
1414
int n;
1515
cin >> n;
16-
vector<base> x(n), y(n);
16+
polyn::Vector x(n), y(n);
1717
copy_n(istream_iterator<base>(cin), n, begin(x));
1818
copy_n(istream_iterator<base>(cin), n, begin(y));
1919
polyn::inter(x, y).print(n);

verify/poly/inter_geo.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using polyn = poly_t<base>;
1414
void solve() {
1515
int n, a, r;
1616
cin >> n >> a >> r;
17-
vector<base> y(n);
17+
polyn::Vector y(n);
1818
copy_n(istream_iterator<base>(cin), n, begin(y));
1919
polyn(y).chirpz_inverse(r, n).mulx(base(a).inv()).print(n);
2020
}

verify/poly/inv.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using polyn = poly_t<base>;
1414
void solve() {
1515
int n;
1616
cin >> n;
17-
vector<base> a(n);
17+
polyn::Vector a(n);
1818
copy_n(istream_iterator<base>(cin), n, begin(a));
1919
polyn(a).inv_inplace(n).print(n);
2020
}

verify/poly/inv_mod.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using polyn = poly_t<base>;
1313
void solve() {
1414
int n, m;
1515
cin >> n >> m;
16-
vector<base> a(n), b(m);
16+
polyn::Vector a(n), b(m);
1717
copy_n(istream_iterator<base>(cin), n, begin(a));
1818
copy_n(istream_iterator<base>(cin), m, begin(b));
1919
auto res = polyn(a).inv_mod(polyn(b));

verify/poly/linrec_consecutive.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void solve() {
1515
int d, M;
1616
int64_t k;
1717
cin >> d >> k >> M;
18-
vector<base> a(d), c(d);
18+
polyn::Vector a(d), c(d);
1919
copy_n(istream_iterator<base>(cin), d, begin(a));
2020
copy_n(istream_iterator<base>(cin), d, begin(c));
2121
polyn A = polyn(a);

0 commit comments

Comments
 (0)