pub struct ExpressionSimplifier<F: Float> { /* private fields */ }Expand description
Expression simplifier
Implementations§
Source§impl<F: Float> ExpressionSimplifier<F>
impl<F: Float> ExpressionSimplifier<F>
Sourcepub fn add_rule(&mut self, rule: SimplificationRule<F>)
pub fn add_rule(&mut self, rule: SimplificationRule<F>)
Add a simplification rule
Sourcepub fn simplify_expressions(
&mut self,
_graph: &mut Graph<F>,
) -> Result<usize, OptimizationError>
pub fn simplify_expressions( &mut self, _graph: &mut Graph<F>, ) -> Result<usize, OptimizationError>
Apply expression simplification to a graph
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear the simplification cache
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for ExpressionSimplifier<F>
impl<F> !RefUnwindSafe for ExpressionSimplifier<F>
impl<F> !Send for ExpressionSimplifier<F>
impl<F> !Sync for ExpressionSimplifier<F>
impl<F> Unpin for ExpressionSimplifier<F>where
F: Unpin,
impl<F> UnsafeUnpin for ExpressionSimplifier<F>
impl<F> !UnwindSafe for ExpressionSimplifier<F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more