MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / normalize

Method normalize

Math/Subset Sum Problem.cpp:137–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135struct poly {
136 vector<mint> a;
137 inline void normalize() {
138 while((int)a.size() && a.back() == 0) a.pop_back();
139 }
140 template<class...Args> poly(Args...args): a(args...) { }
141 poly(const initializer_list<mint> &x): a(x.begin(), x.end()) { }
142 int size() const { return (int)a.size(); }

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected