Function
create_c_vec
(y: F, t_pows: &TPowers<F>)
Source from the content-addressed store, hash-verified
| 1004 | } |
| 1005 | |
| 1006 | fn create_c_vec<F: PrimeField>(y: F, t_pows: &TPowers<F>) -> Vec<F> { |
| 1007 | let (t_inv, t, t2, t3, t5, t6, t7) = ( |
| 1008 | t_pows.nth_power(-1), |
| 1009 | t_pows.nth_power(1), |
| 1010 | t_pows.nth_power(2), |
| 1011 | t_pows.nth_power(3), |
| 1012 | t_pows.nth_power(5), |
| 1013 | t_pows.nth_power(6), |
| 1014 | t_pows.nth_power(7), |
| 1015 | ); |
| 1016 | vec![ |
| 1017 | y * t_inv, |
| 1018 | y * t, |
| 1019 | y * t2, |
| 1020 | y * t3, |
| 1021 | y * t5, |
| 1022 | y * t6, |
| 1023 | y * t7, |
| 1024 | F::zero(), |
| 1025 | ] |
| 1026 | } |
| 1027 | |
| 1028 | /// Vector valued polynomial |
| 1029 | #[derive(Debug, Clone)] |
Tested by
no test coverage detected