Skip to content

Commit b378ff2

Browse files
hitonanodeweb-flow
andauthored
Define nttconv(a, b) explicitly (#94)
* Define nttconv(a, b) explicitly * [auto-verifier] verify commit 7c67eae Co-authored-by: GitHub <noreply@github.com>
1 parent 3b19f3e commit b378ff2

File tree

2 files changed

+18
-29
lines changed

2 files changed

+18
-29
lines changed

.verify-helper/timestamps.remote.json

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"convolution/test/bitwise_and_conv.test.cpp": "2021-06-06 14:54:00 +0900",
2323
"convolution/test/bitwise_xor_conv.test.cpp": "2021-06-06 14:54:00 +0900",
2424
"convolution/test/hadamard_xor.test.cpp": "2020-12-20 04:05:21 +0900",
25-
"convolution/test/multivar_ntt.test.cpp": "2021-06-06 14:54:00 +0900",
26-
"convolution/test/ntt.test.cpp": "2021-06-06 14:54:00 +0900",
27-
"convolution/test/ntt_arbitrary_mod.test.cpp": "2021-06-06 14:54:00 +0900",
25+
"convolution/test/multivar_ntt.test.cpp": "2021-09-02 23:15:02 +0900",
26+
"convolution/test/ntt.test.cpp": "2021-09-02 23:15:02 +0900",
27+
"convolution/test/ntt_arbitrary_mod.test.cpp": "2021-09-02 23:15:02 +0900",
2828
"data_structure/test/assosiative_array.test.cpp": "2021-02-26 23:47:50 +0900",
2929
"data_structure/test/binary_trie.test.cpp": "2021-02-26 23:47:50 +0900",
3030
"data_structure/test/fibonacci_heap_dijkstra.test.cpp": "2021-02-26 23:47:50 +0900",
@@ -43,31 +43,17 @@
4343
"data_structure/test/range_kth_smallest_offline.test.cpp": "2021-02-26 23:47:50 +0900",
4444
"data_structure/test/rectange_sum.test.cpp": "2021-02-26 23:57:31 +0900",
4545
"data_structure/test/static_range_inversion.test.cpp": "2021-02-26 23:47:50 +0900",
46-
"formal_power_series/test/bernoulli_number.test.cpp": "2021-06-06 14:54:00 +0900",
47-
"formal_power_series/test/coeff_of_rational_function.test.cpp": "2021-06-06 14:54:00 +0900",
48-
"formal_power_series/test/division_number.test.cpp": "2021-06-06 14:54:00 +0900",
49-
"formal_power_series/test/factorial_power.stirling_number_of_2nd.test.cpp": "2021-08-21 18:59:37 +0900",
50-
"formal_power_series/test/fps_exp.test.cpp": "2021-06-06 14:54:00 +0900",
51-
"formal_power_series/test/fps_exp_modintruntime.test.cpp": "2021-06-06 14:54:00 +0900",
52-
"formal_power_series/test/fps_inv.test.cpp": "2021-06-06 14:54:00 +0900",
53-
"formal_power_series/test/fps_log.test.cpp": "2021-06-06 14:54:00 +0900",
54-
"formal_power_series/test/fps_pow.test.cpp": "2021-06-06 14:54:00 +0900",
55-
"formal_power_series/test/fps_pow_another.test.cpp": "2021-06-06 14:54:00 +0900",
56-
"formal_power_series/test/fps_sqrt.test.cpp": "2021-06-06 14:54:00 +0900",
57-
"formal_power_series/test/fps_sqrt_modintruntime.test.cpp": "2021-06-06 14:54:00 +0900",
58-
"formal_power_series/test/kitamasa.test.cpp": "2021-06-06 14:54:00 +0900",
59-
"formal_power_series/test/kth_term_of_linearly_recurrent_sequence.test.cpp": "2021-06-06 14:54:00 +0900",
46+
"formal_power_series/test/bernoulli_number.test.cpp": "2021-09-02 23:15:02 +0900",
47+
"formal_power_series/test/coeff_of_rational_function.test.cpp": "2021-09-02 23:15:02 +0900",
48+
"formal_power_series/test/division_number.test.cpp": "2021-09-02 23:15:02 +0900",
49+
"formal_power_series/test/factorial_power.stirling_number_of_2nd.test.cpp": "2021-09-02 23:15:02 +0900",
50+
"formal_power_series/test/fps_exp.test.cpp": "2021-09-02 23:15:02 +0900",
51+
"formal_power_series/test/fps_exp_modintruntime.test.cpp": "2021-09-02 23:15:02 +0900",
52+
"formal_power_series/test/fps_inv.test.cpp": "2021-09-02 23:15:02 +0900",
53+
"formal_power_series/test/fps_log.test.cpp": "2021-09-02 23:15:02 +0900",
54+
"formal_power_series/test/fps_pow.test.cpp": "2021-09-02 23:15:02 +0900",
6055
"formal_power_series/test/linear_recurrence.test.cpp": "2021-06-06 14:54:00 +0900",
61-
"formal_power_series/test/multipoint_evaluation.test.cpp": "2021-06-06 14:54:00 +0900",
62-
"formal_power_series/test/poly_taylor_shift.test.cpp": "2021-06-06 14:54:00 +0900",
63-
"formal_power_series/test/polynomial_divmod.test.cpp": "2021-06-06 14:54:00 +0900",
64-
"formal_power_series/test/polynomial_interpolation.test.cpp": "2021-06-06 14:54:00 +0900",
65-
"formal_power_series/test/sharp_p_subset_sum.test.cpp": "2021-06-06 14:54:00 +0900",
66-
"formal_power_series/test/shift_of_sampling_points.test.cpp": "2021-08-21 18:59:37 +0900",
67-
"formal_power_series/test/stirling_number_of_1st.test.cpp": "2021-06-06 14:54:00 +0900",
68-
"formal_power_series/test/stirling_number_of_2nd.test.cpp": "2021-06-06 14:54:00 +0900",
6956
"formal_power_series/test/sum_of_exponential_times_polynomial.test.cpp": "2021-08-01 19:15:08 +0900",
70-
"formal_power_series/test/sum_of_exponential_times_polynomial_limit.test.cpp": "2021-08-01 19:15:08 +0900",
7157
"geometry/test/circumcenter.test.cpp": "2021-06-06 03:50:20 +0900",
7258
"geometry/test/convex_cut.test.cpp": "2021-06-06 03:50:20 +0900",
7359
"geometry/test/convex_hull.test.cpp": "2021-06-06 03:50:20 +0900",
@@ -95,9 +81,7 @@
9581
"graph/test/topological_sort.test.cpp": "2021-01-01 16:38:37 +0900",
9682
"graph/test/two-edge-connected-components.test.cpp": "2020-11-21 18:08:42 +0900",
9783
"graph/test/warshallfloyd.test.cpp": "2021-08-28 00:57:49 +0900",
98-
"linear_algebra_matrix/test/blackbox_matrix_stress.test.cpp": "2021-06-13 19:08:25 +0900",
9984
"linear_algebra_matrix/test/characteristic_poly.test.cpp": "2021-06-20 13:43:26 +0900",
100-
"linear_algebra_matrix/test/det_of_blackbox_matrix.test.cpp": "2021-06-13 19:08:25 +0900",
10185
"linear_algebra_matrix/test/inverse_matrix.test.cpp": "2021-07-23 11:30:53 +0900",
10286
"linear_algebra_matrix/test/linalg_bitset.test.cpp": "2021-06-13 19:08:25 +0900",
10387
"linear_algebra_matrix/test/linalg_ll_det.test.cpp": "2021-06-13 19:08:25 +0900",

convolution/ntt.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// input: a (size: n), b (size: m)
1515
// return: vector (size: n + m - 1)
1616
template <typename MODINT>
17-
std::vector<MODINT> nttconv(std::vector<MODINT> a, std::vector<MODINT> b, bool skip_garner = false);
17+
std::vector<MODINT> nttconv(std::vector<MODINT> a, std::vector<MODINT> b, bool skip_garner);
1818

1919
constexpr int nttprimes[3] = {998244353, 167772161, 469762049};
2020

@@ -118,3 +118,8 @@ std::vector<MODINT> nttconv(std::vector<MODINT> a, std::vector<MODINT> b, bool s
118118
}
119119
return a;
120120
}
121+
122+
template <typename MODINT>
123+
std::vector<MODINT> nttconv(const std::vector<MODINT> &a, const std::vector<MODINT> &b) {
124+
return nttconv<MODINT>(a, b, false);
125+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy