Skip to content

Commit a7ae04d

Browse files
committed
support instance scalar
1 parent b155b40 commit a7ae04d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/multilinear_extensions/src/expression.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ impl<E: ExtensionField> Neg for Expression<E> {
465465
Expression::Fixed(_)
466466
| Expression::WitIn(_)
467467
| Expression::StructuralWitIn(..)
468-
| Expression::Instance(_) => Expression::ScaledSum(
468+
| Expression::Instance(_)
469+
| Expression::InstanceScalar(_) => Expression::ScaledSum(
469470
Box::new(self),
470471
Box::new(Expression::Constant(Either::Left(-E::BaseField::ONE))),
471472
Box::new(Expression::Constant(Either::Left(E::BaseField::ZERO))),
@@ -478,9 +479,6 @@ impl<E: ExtensionField> Neg for Expression<E> {
478479
Expression::Challenge(challenge_id, pow, scalar, offset) => {
479480
Expression::Challenge(challenge_id, pow, scalar.neg(), offset.neg())
480481
}
481-
Expression::InstanceScalar(_) => {
482-
unimplemented!("figure out how to support InstanceScalar")
483-
}
484482
}
485483
}
486484
}

0 commit comments

Comments
 (0)