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

Method dn

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

dn

(n: usize, ct: &Constants)

Source from the content-addressed store, hash-verified

247 }
248 /// dn
249 fn dn(n: usize, ct: &Constants) -> usize {
250 use ark_std::cmp::min;
251 let b = ct.b;
252 let r = ct.r;
253 let d = ct.d;
254 min(
255 ceil_mul(n, (2 * b.0, b.1))
256 + ((ceil_mul(n, r) - n + 110) as f64 / F::MODULUS_BIT_SIZE as f64).ceil() as usize, // 2 * beta * n + n * (r - 1 + 110/n)
257 ((110f64 / (n as f64) + d.0) / d.1).ceil() as usize,
258 )
259 }
260 fn mat_size(
261 mut n: usize,
262 base_len: usize,

Callers

nothing calls this directly

Calls 1

ceil_mulFunction · 0.85

Tested by

no test coverage detected