dn
(n: usize, ct: &Constants)
| 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, |
nothing calls this directly
no test coverage detected