MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / check_norm

Function check_norm

FHEOffline/EncCommit.cpp:186–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186bool check_norm(const Rq_Element& value, const bigint& bound)
187{
188 bool res = (value.infinity_norm() > bound);
189 if (res)
190 cout << "out of bound by (log) "
191 << log2(value.infinity_norm().get_d() / bound.get_d()) << endl;
192 return res;
193}
194
195template<class T,class FD,class S>
196void EncCommit<T,FD,S>::Create_More() const

Callers 1

Create_MoreMethod · 0.85

Calls 2

log2Function · 0.85
infinity_normMethod · 0.45

Tested by

no test coverage detected