Add polynomial method to Table

This commit is contained in:
DoHoonKim8
2024-04-25 23:38:24 +09:00
parent e5f7d17af0
commit e025e1e427

View File

@@ -64,6 +64,10 @@ impl<F: PrimeField + Hash> Table<F> {
}
Ok(indices)
}
pub fn polynomial(&self) -> MultilinearPolynomial<F> {
MultilinearPolynomial::eval_to_coeff(&self.table, self.num_vars)
}
}
#[derive(Clone, Debug)]