We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b925fb8 commit 96ff359Copy full SHA for 96ff359
cp-algo/linalg/vector.hpp
@@ -132,7 +132,7 @@ namespace cp_algo::linalg {
132
for(; i < size(*this); i++) {
133
(*this)[i].add_unsafe(scaler * b[i].getr_direct());
134
}
135
- if(++counter == 8) {
+ if(++counter == 4) {
136
for(auto &it: *this) {
137
it.pseudonormalize();
138
cp-algo/number_theory/modint.hpp
@@ -99,7 +99,7 @@ namespace cp_algo::math {
99
return std::min(res, res - mod());
100
101
void setr_direct(uint64_t rr) {r = rr;}
102
- uint64_t getr_direct() const {return std::min(r, r - mod());}
+ uint64_t getr_direct() const {return r;}
103
private:
104
uint64_t r;
105
modint& to_modint() {return static_cast<modint&>(*this);}
0 commit comments