MCPcopy Create free account
hub / github.com/arkworks-rs/poly-commit / cn

Method cn

poly-commit/src/linear_codes/brakedown.rs:227–235  ·  view source on GitHub ↗

cn

(n: usize, ct: &Constants)

Source from the content-addressed store, hash-verified

225 }
226 /// cn
227 fn cn(n: usize, ct: &Constants) -> usize {
228 use ark_std::cmp::{max, min};
229 let b = ct.b;
230 let c = ct.c;
231 min(
232 max(ceil_mul(n, (32 * b.0, 25 * b.1)), 4 + ceil_mul(n, b)),
233 ((110f64 / (n as f64) + c.0) / c.1).ceil() as usize,
234 )
235 }
236 /// dn_const
237 fn dn_const(a: (usize, usize), b: (usize, usize), r: (usize, usize)) -> (f64, f64) {
238 let m = Self::mu(a, r);

Callers

nothing calls this directly

Calls 1

ceil_mulFunction · 0.85

Tested by

no test coverage detected