Skip to content

Commit

Permalink
symvar new
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirhemo committed Feb 20, 2024
1 parent 48870d5 commit 77fb001
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions uni-stark/src/symbolic_variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ pub struct SymbolicVariable<F: Field> {
pub(crate) _phantom: PhantomData<F>,
}

impl<F: Field> SymbolicVariable<F> {
pub fn new(is_next: bool, column: usize) -> Self {
Self {
is_next,
column,
_phantom: PhantomData,
}
}
}

impl<F: Field> From<SymbolicVariable<F>> for SymbolicExpression<F> {
fn from(value: SymbolicVariable<F>) -> Self {
SymbolicExpression::Variable(value)
Expand Down

0 comments on commit 77fb001

Please sign in to comment.