Skip to content

Commit 7b49f81

Browse files
hitonanodeweb-flow
andauthored
rm constexpr from bare_mod_algebra for C++11 (#100)
* rm constexpr from bare_mod_algebra for C++11 * [auto-verifier] verify commit 693f7bb Co-authored-by: GitHub <noreply@github.com>
1 parent d001d90 commit 7b49f81

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.verify-helper/timestamps.remote.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@
100100
"linear_algebra_matrix/test/det_of_blackbox_matrix.test.cpp": "2021-09-04 00:38:32 +0900",
101101
"linear_algebra_matrix/test/inverse_matrix.test.cpp": "2021-07-23 11:30:53 +0900",
102102
"linear_algebra_matrix/test/linalg_bitset.test.cpp": "2021-06-13 19:08:25 +0900",
103-
"linear_algebra_matrix/test/linalg_ll_det.test.cpp": "2021-06-13 19:08:25 +0900",
104-
"linear_algebra_matrix/test/linalg_longlong.test.cpp": "2021-06-13 19:08:25 +0900",
105-
"linear_algebra_matrix/test/linalg_longlong_matmul.test.cpp": "2021-06-13 19:08:25 +0900",
103+
"linear_algebra_matrix/test/linalg_ll_det.test.cpp": "2021-09-05 18:58:09 +0900",
104+
"linear_algebra_matrix/test/linalg_longlong.test.cpp": "2021-09-05 18:58:09 +0900",
105+
"linear_algebra_matrix/test/linalg_longlong_matmul.test.cpp": "2021-09-05 18:58:09 +0900",
106106
"linear_algebra_matrix/test/linalg_modint_determinant.test.cpp": "2021-06-13 19:08:25 +0900",
107-
"linear_algebra_matrix/test/linalg_modint_multiplication.test.cpp": "2021-06-13 19:08:25 +0900",
107+
"linear_algebra_matrix/test/linalg_modint_multiplication.test.cpp": "2021-09-05 18:58:09 +0900",
108108
"linear_algebra_matrix/test/linalg_modint_pow.test.cpp": "2021-06-13 19:08:25 +0900",
109109
"linear_algebra_matrix/test/matrix_product.test.cpp": "2021-08-01 21:42:17 +0900",
110110
"linear_algebra_matrix/test/system_of_linear_equations.test.cpp": "2021-06-13 19:08:25 +0900",
@@ -173,6 +173,7 @@
173173
"tree/test/diameter.test.cpp": "2021-06-09 00:31:07 +0900",
174174
"tree/test/frequency_table_of_tree_distance.stress.test.cpp": "2021-09-04 01:18:16 +0900",
175175
"tree/test/frequency_table_of_tree_distance.test.cpp": "2021-09-04 01:18:16 +0900",
176+
"tree/test/frequency_table_of_tree_distance_ntt.test.cpp": "2021-09-05 18:58:09 +0900",
176177
"tree/test/hl_decomposition.test.cpp": "2021-06-06 15:23:40 +0900",
177178
"tree/test/lca.test.cpp": "2021-07-30 23:28:45 +0900",
178179
"tree/test/lca.yuki898.test.cpp": "2021-07-30 23:28:45 +0900",

number/bare_mod_algebra.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ template <typename Int> Int mod_inverse(Int a, Int m) {
2727

2828
// Require: 1 <= b
2929
// return: (g, x) s.t. g = gcd(a, b), xa = g MOD b, 0 <= x < b/g
30-
template <typename Int> constexpr std::pair<Int, Int> inv_gcd(Int a, Int b) {
30+
template <typename Int> /* constexpr */ std::pair<Int, Int> inv_gcd(Int a, Int b) {
3131
a %= b;
3232
if (a < 0) a += b;
3333
if (a == 0) return {b, 0};
@@ -42,7 +42,8 @@ template <typename Int> constexpr std::pair<Int, Int> inv_gcd(Int a, Int b) {
4242
return {s, m0};
4343
}
4444

45-
template <typename Int> constexpr std::pair<Int, Int> crt(const std::vector<Int> &r, const std::vector<Int> &m) {
45+
template <typename Int>
46+
/* constexpr */ std::pair<Int, Int> crt(const std::vector<Int> &r, const std::vector<Int> &m) {
4647
assert(r.size() == m.size());
4748
int n = int(r.size());
4849
// Contracts: 0 <= r0 < m0

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