Skip to content

Commit 2fd7957

Browse files
committed
Merge remote-tracking branch 'origin/HEAD'
2 parents f04598b + 8af1b3f commit 2fd7957

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

crates/lean_vm/src/tables/dot_product/exec.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ pub(super) fn exec_dot_product_ee(
6363
) -> Result<(), RunnerError> {
6464
assert!(size > 0);
6565

66-
let (slice_0, slice_1, dot_product_result) = if ptr_arg_1.to_usize() == ONE_VEC_PTR {
67-
if size != 1 {
68-
unimplemented!("weird use case");
69-
}
66+
let (slice_0, slice_1, dot_product_result) = if ptr_arg_1.to_usize() == ONE_VEC_PTR && size == 1 {
7067
if ptr_res.to_usize() == ZERO_VEC_PTR {
7168
memory.set_ef_element(ptr_arg_0.to_usize(), EF::ZERO)?;
7269
(vec![EF::ZERO], vec![EF::ONE], EF::ZERO)

crates/rec_aggregation/recursion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def continue_recursion_ordered(second_table, third_table, fs, offset, retrieved_
391391
inner_sum,
392392
dot_product_ret(
393393
evals_down_ef,
394-
batching_scalar_powers + n_down_columns_f,
394+
batching_scalar_powers + n_down_columns_f * DIM,
395395
n_down_columns_ef,
396396
EE,
397397
),
@@ -413,7 +413,7 @@ def continue_recursion_ordered(second_table, third_table, fs, offset, retrieved_
413413
batched_col_down_sc_eval,
414414
dot_product_ret(
415415
evals_ef_on_down_columns,
416-
batching_scalar_powers + n_down_columns_f,
416+
batching_scalar_powers + n_down_columns_f * DIM,
417417
n_down_columns_ef,
418418
EE,
419419
),

crates/rec_aggregation/src/recursion.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ def main():
2222
null_ptr = ZERO_VEC_PTR # pointer to zero vector
2323
poseidon_of_zero = POSEIDON_OF_ZERO
2424
poseidon16(null_ptr, null_ptr, poseidon_of_zero)
25-
dot_product(null_ptr, null_ptr, null_ptr, 2, BE)
26-
dot_product(null_ptr, null_ptr, null_ptr, 2, EE)
25+
a = Array(DIM)
26+
b = Array(DIM)
27+
after_null_ptr = 16
28+
dot_product(after_null_ptr, after_null_ptr, a, 3, BE)
29+
dot_product(after_null_ptr, after_null_ptr, b, 2, EE)
2730
x: Mut = 0
2831
n = 10
2932
for j in range(0, n):

crates/rec_aggregation/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ def next_mle(x, y, n):
612612
def dot_product_with_the_base_vectors(slice):
613613
# slice: pointer to DIM extension field elements
614614
# cf constants.rs: by convention, [10000] [01000] [00100] [00010] [00001] is harcoded in memory, starting at ONE_VEC_PTR
615-
return dot_product_ret(slice, ONE_VEC_PTR, 1, EE)
615+
return dot_product_ret(slice, ONE_VEC_PTR, DIM, EE)
616616

617617

618618
def _verify_log2_small(n, partial_sums_24, log2: Const):

0 commit comments

Comments
 (0)