User Guide
|
Count interleaves of assignment statement inside the system of equations. More...
Count interleaves of assignment statement inside the system of equations.
Example:
Number of interleaves: n-1 = 1
Definition at line 275 of file sympy_replace_solutions_visitor.hpp.
Public Member Functions | |
void | new_equation (const bool is_in_system) |
Count interleaves defined as a switch false -> true for in_system. More... | |
size_t | n () const |
Number of interleaves. More... | |
Private Attributes | |
size_t | n_interleaves = 0 |
Number of interleaves of assignment statements in between equations of the system of equations. More... | |
bool | in_system = false |
Bool that keeps track if just wrote an equation of the system of equations (true) or not (false) More... | |
|
inline |
Number of interleaves.
We need to remove the first activation of the switch except if there were no switches
Definition at line 281 of file sympy_replace_solutions_visitor.hpp.
void nmodl::visitor::SympyReplaceSolutionsVisitor::InterleavesCounter::new_equation | ( | const bool | is_in_system | ) |
Count interleaves defined as a switch false -> true for in_system.
SympyReplaceSolutionsVisitor tells us that a new equation appear and, depending where it is located, it can determine if it is part of the main system of equations or is something else. Every time we are out of the system and we print a new equation that is in the system we update the counter. in_system follows, with lag,
is_in_system | and every time they are false and true respectively we detect a switch. |
is_in_system | is a bool provided from outside that tells us if a new equation is indeed part of the main system of equations |
Definition at line 28 of file sympy_replace_solutions_visitor.cpp.
|
private |
Bool that keeps track if just wrote an equation of the system of equations (true) or not (false)
Definition at line 297 of file sympy_replace_solutions_visitor.hpp.
|
private |
Number of interleaves of assignment statements in between equations of the system of equations.
This is equivalent to the number of switches false -> true of in_system minus the very first one (if the system exists).
Definition at line 293 of file sympy_replace_solutions_visitor.hpp.