Skip to content

Commit bc44db5

Browse files
committed
witness: add documentation for WitnessMultilinearEval
1 parent 72ab579 commit bc44db5

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
use crate::{constant::EF, memory::address::MemoryAddress};
22

3+
/// Holds the high-level witness data for a single multilinear evaluation precompile.
34
#[derive(Debug)]
45
pub struct WitnessMultilinearEval {
6+
/// The CPU cycle at which this operation is initiated.
57
pub cycle: usize,
6-
pub addr_coeffs: MemoryAddress, // vectorized pointer, of size 8.2^size
7-
pub addr_point: MemoryAddress, // vectorized pointer, of size `size`
8-
pub addr_res: MemoryAddress, // vectorized pointer
8+
/// The memory address of the polynomial's coefficients.
9+
pub addr_coeffs: MemoryAddress,
10+
/// The memory address of the evaluation point's coordinates.
11+
pub addr_point: MemoryAddress,
12+
/// The memory address where the final result is stored.
13+
pub addr_res: MemoryAddress,
14+
/// The number of variables in the multilinear polynomial.
915
pub n_vars: usize,
16+
/// The coordinates of the evaluation point.
1017
pub point: Vec<EF>,
18+
/// The final computed result of the evaluation.
1119
pub res: EF,
1220
}

0 commit comments

Comments
 (0)