expression_parser¶
Bindings for numeric::expression_parser namespace
-
class
pyrosetta.rosetta.numeric.expression_parser.
ASTPrinter
¶ Bases:
pyrosetta.rosetta.numeric.expression_parser.ASTVisitor
Traverse the AST and print it to standard out
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ASTVisitor) → pyrosetta.rosetta.numeric.expression_parser.ASTVisitor¶ C++: numeric::expression_parser::ASTVisitor::operator=(const class numeric::expression_parser::ASTVisitor &) –> class numeric::expression_parser::ASTVisitor &
-
ast_string
(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, node: pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTNode) → str¶ C++: numeric::expression_parser::ASTPrinter::ast_string(const class numeric::expression_parser::ArithmeticASTNode &) –> std::string
-
pretty
(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, setting: bool) → None¶ C++: numeric::expression_parser::ASTPrinter::pretty(bool) –> void
-
visit
(*args, **kwargs)¶ Overloaded function.
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTExpression) -> None
C++: numeric::expression_parser::ASTPrinter::visit(const class numeric::expression_parser::ArithmeticASTExpression &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTAndClause) -> None
C++: numeric::expression_parser::ASTPrinter::visit(const class numeric::expression_parser::ArithmeticASTAndClause &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTOrClause) -> None
C++: numeric::expression_parser::ASTPrinter::visit(const class numeric::expression_parser::ArithmeticASTOrClause &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTFunction) -> None
C++: numeric::expression_parser::ASTPrinter::visit(const class numeric::expression_parser::ArithmeticASTFunction &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTTerm) -> None
C++: numeric::expression_parser::ASTPrinter::visit(const class numeric::expression_parser::ArithmeticASTTerm &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTFactor) -> None
C++: numeric::expression_parser::ASTPrinter::visit(const class numeric::expression_parser::ArithmeticASTFactor &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTValue) -> None
C++: numeric::expression_parser::ASTPrinter::visit(const class numeric::expression_parser::ArithmeticASTValue &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTRestTerm) -> None
C++: numeric::expression_parser::ASTPrinter::visit(const class numeric::expression_parser::ArithmeticASTRestTerm &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTRestAndClause) -> None
C++: numeric::expression_parser::ASTPrinter::visit(const class numeric::expression_parser::ArithmeticASTRestAndClause &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTRestOrClause) -> None
C++: numeric::expression_parser::ASTPrinter::visit(const class numeric::expression_parser::ArithmeticASTRestOrClause &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTRestExpression) -> None
C++: numeric::expression_parser::ASTPrinter::visit(const class numeric::expression_parser::ArithmeticASTRestExpression &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTPrinter, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTNode) -> None
C++: numeric::expression_parser::ASTPrinter::visit(const class numeric::expression_parser::ArithmeticASTNode &) –> void
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
ASTVisitor
¶ Bases:
pybind11_builtins.pybind11_object
Double-dispatch visitor pattern for abstract syntax tree
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ASTVisitor) → pyrosetta.rosetta.numeric.expression_parser.ASTVisitor¶ C++: numeric::expression_parser::ASTVisitor::operator=(const class numeric::expression_parser::ASTVisitor &) –> class numeric::expression_parser::ASTVisitor &
-
visit
(*args, **kwargs)¶ Overloaded function.
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTExpression) -> None
C++: numeric::expression_parser::ASTVisitor::visit(const class numeric::expression_parser::ArithmeticASTExpression &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTOrClause) -> None
C++: numeric::expression_parser::ASTVisitor::visit(const class numeric::expression_parser::ArithmeticASTOrClause &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTAndClause) -> None
C++: numeric::expression_parser::ASTVisitor::visit(const class numeric::expression_parser::ArithmeticASTAndClause &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTFunction) -> None
C++: numeric::expression_parser::ASTVisitor::visit(const class numeric::expression_parser::ArithmeticASTFunction &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTTerm) -> None
C++: numeric::expression_parser::ASTVisitor::visit(const class numeric::expression_parser::ArithmeticASTTerm &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTFactor) -> None
C++: numeric::expression_parser::ASTVisitor::visit(const class numeric::expression_parser::ArithmeticASTFactor &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTValue) -> None
C++: numeric::expression_parser::ASTVisitor::visit(const class numeric::expression_parser::ArithmeticASTValue &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTRestTerm) -> None
C++: numeric::expression_parser::ASTVisitor::visit(const class numeric::expression_parser::ArithmeticASTRestTerm &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTRestAndClause) -> None
C++: numeric::expression_parser::ASTVisitor::visit(const class numeric::expression_parser::ArithmeticASTRestAndClause &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTRestOrClause) -> None
C++: numeric::expression_parser::ASTVisitor::visit(const class numeric::expression_parser::ArithmeticASTRestOrClause &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTRestExpression) -> None
C++: numeric::expression_parser::ASTVisitor::visit(const class numeric::expression_parser::ArithmeticASTRestExpression &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ASTVisitor, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTNode) -> None
C++: numeric::expression_parser::ASTVisitor::visit(const class numeric::expression_parser::ArithmeticASTNode &) –> void
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
AndExpression
¶ Bases:
pyrosetta.rosetta.numeric.expression_parser.BinaryExpression
- Boolean Logic Operators
-
active_variables
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.std.list_std_string_std_allocator_std_string_t¶ C++: numeric::expression_parser::BinaryExpression::active_variables() const –> class std::list<std::string, class std::allocator<std::string > >
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.AndExpression, : pyrosetta.rosetta.numeric.expression_parser.AndExpression) → pyrosetta.rosetta.numeric.expression_parser.AndExpression¶ C++: numeric::expression_parser::AndExpression::operator=(const class numeric::expression_parser::AndExpression &) –> class numeric::expression_parser::AndExpression &
-
differentiate
(self: pyrosetta.rosetta.numeric.expression_parser.AndExpression, varname: str) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::AndExpression::differentiate(const class std::basic_string<char> &) const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
e1
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::BinaryExpression::e1() const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
e2
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::BinaryExpression::e2() const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
set_first_expression
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression, e1: pyrosetta.rosetta.numeric.expression_parser.Expression) → None¶ C++: numeric::expression_parser::BinaryExpression::set_first_expression(class std::shared_ptr<const class numeric::expression_parser::Expression>) –> void
-
set_second_expression
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression, e2: pyrosetta.rosetta.numeric.expression_parser.Expression) → None¶ C++: numeric::expression_parser::BinaryExpression::set_second_expression(class std::shared_ptr<const class numeric::expression_parser::Expression>) –> void
-
class
pyrosetta.rosetta.numeric.expression_parser.
ArithmeticASTNode
¶ Bases:
pybind11_builtins.pybind11_object
Base class for Abstract Syntax Tree (AST) for the simple Arithmetic language defined here.
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTNode, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTNode) → pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTNode¶ C++: numeric::expression_parser::ArithmeticASTNode::operator=(const class numeric::expression_parser::ArithmeticASTNode &) –> class numeric::expression_parser::ArithmeticASTNode &
-
visit
(self: pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTNode, visitor: numeric::expression_parser::ASTVisitor) → None¶ C++: numeric::expression_parser::ArithmeticASTNode::visit(class numeric::expression_parser::ASTVisitor &) const –> void
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
ArithmeticASTValue
¶ Bases:
pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTNode
either a variable or a literal.
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTValue, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTValue) → pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTValue¶ C++: numeric::expression_parser::ArithmeticASTValue::operator=(const class numeric::expression_parser::ArithmeticASTValue &) –> class numeric::expression_parser::ArithmeticASTValue &
-
is_literal
(self: pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTValue) → bool¶ C++: numeric::expression_parser::ArithmeticASTValue::is_literal() const –> bool
-
literal_value
(self: pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTValue) → float¶ C++: numeric::expression_parser::ArithmeticASTValue::literal_value() const –> double
-
parse
(self: pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTValue, tokens: pyrosetta.rosetta.numeric.expression_parser.TokenSet) → None¶ C++: numeric::expression_parser::ArithmeticASTValue::parse(class numeric::expression_parser::TokenSet &) –> void
-
variable_name
(self: pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTValue) → str¶ C++: numeric::expression_parser::ArithmeticASTValue::variable_name() const –> std::string
-
visit
(self: pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTValue, visitor: numeric::expression_parser::ASTVisitor) → None¶ C++: numeric::expression_parser::ArithmeticASTValue::visit(class numeric::expression_parser::ASTVisitor &) const –> void
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
EqualsExpression
¶ Bases:
pyrosetta.rosetta.numeric.expression_parser.BinaryExpression
BEGIN PSEUDO-BOOLEAN EXPRESSIONS DO NOT TRY TO DIFFERENTIATE THEM 1. Arithmetic Comparison Operators
-
active_variables
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.std.list_std_string_std_allocator_std_string_t¶ C++: numeric::expression_parser::BinaryExpression::active_variables() const –> class std::list<std::string, class std::allocator<std::string > >
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.EqualsExpression, : pyrosetta.rosetta.numeric.expression_parser.EqualsExpression) → pyrosetta.rosetta.numeric.expression_parser.EqualsExpression¶ C++: numeric::expression_parser::EqualsExpression::operator=(const class numeric::expression_parser::EqualsExpression &) –> class numeric::expression_parser::EqualsExpression &
-
differentiate
(self: pyrosetta.rosetta.numeric.expression_parser.EqualsExpression, varname: str) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::EqualsExpression::differentiate(const class std::basic_string<char> &) const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
e1
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::BinaryExpression::e1() const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
e2
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::BinaryExpression::e2() const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
set_first_expression
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression, e1: pyrosetta.rosetta.numeric.expression_parser.Expression) → None¶ C++: numeric::expression_parser::BinaryExpression::set_first_expression(class std::shared_ptr<const class numeric::expression_parser::Expression>) –> void
-
set_second_expression
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression, e2: pyrosetta.rosetta.numeric.expression_parser.Expression) → None¶ C++: numeric::expression_parser::BinaryExpression::set_second_expression(class std::shared_ptr<const class numeric::expression_parser::Expression>) –> void
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
Expression
¶ Bases:
pybind11_builtins.pybind11_object
Pure virtual base class to define arbitrary expressions for scripting arithmetic operations (e.g. addition and multipliction).
-
active_variables
(self: pyrosetta.rosetta.numeric.expression_parser.Expression) → pyrosetta.rosetta.std.list_std_string_std_allocator_std_string_t¶ C++: numeric::expression_parser::Expression::active_variables() const –> class std::list<std::string, class std::allocator<std::string > >
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.Expression, : pyrosetta.rosetta.numeric.expression_parser.Expression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::Expression::operator=(const class numeric::expression_parser::Expression &) –> class numeric::expression_parser::Expression &
-
differentiate
(self: pyrosetta.rosetta.numeric.expression_parser.Expression, varname: str) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ - Returns the expression for the partial derivative of this expression
- by the variable named varname. If the partial derivative is always zero with respect to varname, returns null.
C++: numeric::expression_parser::Expression::differentiate(const class std::basic_string<char> &) const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
ExpressionCreator
¶ Bases:
pyrosetta.rosetta.numeric.expression_parser.ASTVisitor
Class to traverse the abstract syntax tree produced by the parsing of a properly-formed string in the Arithmetic expression language. Produces an Expression tree capable of performing arithmetic. Connects the “variable” nodes in this tree to the owning WrapperOptEMultifunc so that their values can be retrieved during expression evaluation inside the WrapperOptEMultifunc functor.
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator) → pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator¶ C++: numeric::expression_parser::ExpressionCreator::operator=(const class numeric::expression_parser::ExpressionCreator &) –> class numeric::expression_parser::ExpressionCreator &
-
create_expression_tree
(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTExpression) → numeric::expression_parser::Expression¶ C++: numeric::expression_parser::ExpressionCreator::create_expression_tree(const class numeric::expression_parser::ArithmeticASTExpression &) –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
handle_function_expression
(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, function: pyrosetta.rosetta.numeric.expression_parser.FunctionToken, args: pyrosetta.rosetta.utility.vector1_std_shared_ptr_const_numeric_expression_parser_Expression_t) → numeric::expression_parser::Expression¶ - Factory method to be implemented by derived classes
- which may wish to handle function expressions in a specific manner
C++: numeric::expression_parser::ExpressionCreator::handle_function_expression(class std::shared_ptr<const class numeric::expression_parser::FunctionToken>, const class utility::vector1<class std::shared_ptr<const class numeric::expression_parser::Expression>, class std::allocator<class std::shared_ptr<const class numeric::expression_parser::Expression> > > &) –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
handle_variable_expression
(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTValue) → numeric::expression_parser::Expression¶ - Factory method to be implemented by derived classes
- which may wish to handle variable expressions in a specific manner
C++: numeric::expression_parser::ExpressionCreator::handle_variable_expression(const class numeric::expression_parser::ArithmeticASTValue &) –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
visit
(*args, **kwargs)¶ Overloaded function.
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTExpression) -> None
C++: numeric::expression_parser::ExpressionCreator::visit(const class numeric::expression_parser::ArithmeticASTExpression &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTAndClause) -> None
C++: numeric::expression_parser::ExpressionCreator::visit(const class numeric::expression_parser::ArithmeticASTAndClause &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTOrClause) -> None
C++: numeric::expression_parser::ExpressionCreator::visit(const class numeric::expression_parser::ArithmeticASTOrClause &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTFunction) -> None
C++: numeric::expression_parser::ExpressionCreator::visit(const class numeric::expression_parser::ArithmeticASTFunction &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTTerm) -> None
C++: numeric::expression_parser::ExpressionCreator::visit(const class numeric::expression_parser::ArithmeticASTTerm &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTFactor) -> None
C++: numeric::expression_parser::ExpressionCreator::visit(const class numeric::expression_parser::ArithmeticASTFactor &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTValue) -> None
C++: numeric::expression_parser::ExpressionCreator::visit(const class numeric::expression_parser::ArithmeticASTValue &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTRestTerm) -> None
C++: numeric::expression_parser::ExpressionCreator::visit(const class numeric::expression_parser::ArithmeticASTRestTerm &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTRestAndClause) -> None
C++: numeric::expression_parser::ExpressionCreator::visit(const class numeric::expression_parser::ArithmeticASTRestAndClause &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTRestOrClause) -> None
C++: numeric::expression_parser::ExpressionCreator::visit(const class numeric::expression_parser::ArithmeticASTRestOrClause &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTRestExpression) -> None
C++: numeric::expression_parser::ExpressionCreator::visit(const class numeric::expression_parser::ArithmeticASTRestExpression &) –> void
- visit(self: pyrosetta.rosetta.numeric.expression_parser.ExpressionCreator, : pyrosetta.rosetta.numeric.expression_parser.ArithmeticASTNode) -> None
C++: numeric::expression_parser::ExpressionCreator::visit(const class numeric::expression_parser::ArithmeticASTNode &) –> void
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
GTE_Expression
¶ Bases:
pyrosetta.rosetta.numeric.expression_parser.BinaryExpression
Greater Than or Equal To
-
active_variables
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.std.list_std_string_std_allocator_std_string_t¶ C++: numeric::expression_parser::BinaryExpression::active_variables() const –> class std::list<std::string, class std::allocator<std::string > >
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.GTE_Expression, : pyrosetta.rosetta.numeric.expression_parser.GTE_Expression) → pyrosetta.rosetta.numeric.expression_parser.GTE_Expression¶ C++: numeric::expression_parser::GTE_Expression::operator=(const class numeric::expression_parser::GTE_Expression &) –> class numeric::expression_parser::GTE_Expression &
-
differentiate
(self: pyrosetta.rosetta.numeric.expression_parser.GTE_Expression, varname: str) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::GTE_Expression::differentiate(const class std::basic_string<char> &) const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
e1
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::BinaryExpression::e1() const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
e2
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::BinaryExpression::e2() const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
set_first_expression
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression, e1: pyrosetta.rosetta.numeric.expression_parser.Expression) → None¶ C++: numeric::expression_parser::BinaryExpression::set_first_expression(class std::shared_ptr<const class numeric::expression_parser::Expression>) –> void
-
set_second_expression
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression, e2: pyrosetta.rosetta.numeric.expression_parser.Expression) → None¶ C++: numeric::expression_parser::BinaryExpression::set_second_expression(class std::shared_ptr<const class numeric::expression_parser::Expression>) –> void
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
GT_Expression
¶ Bases:
pyrosetta.rosetta.numeric.expression_parser.BinaryExpression
Greater Than
-
active_variables
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.std.list_std_string_std_allocator_std_string_t¶ C++: numeric::expression_parser::BinaryExpression::active_variables() const –> class std::list<std::string, class std::allocator<std::string > >
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.GT_Expression, : pyrosetta.rosetta.numeric.expression_parser.GT_Expression) → pyrosetta.rosetta.numeric.expression_parser.GT_Expression¶ C++: numeric::expression_parser::GT_Expression::operator=(const class numeric::expression_parser::GT_Expression &) –> class numeric::expression_parser::GT_Expression &
-
differentiate
(self: pyrosetta.rosetta.numeric.expression_parser.GT_Expression, varname: str) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::GT_Expression::differentiate(const class std::basic_string<char> &) const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
e1
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::BinaryExpression::e1() const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
e2
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::BinaryExpression::e2() const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
set_first_expression
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression, e1: pyrosetta.rosetta.numeric.expression_parser.Expression) → None¶ C++: numeric::expression_parser::BinaryExpression::set_first_expression(class std::shared_ptr<const class numeric::expression_parser::Expression>) –> void
-
set_second_expression
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression, e2: pyrosetta.rosetta.numeric.expression_parser.Expression) → None¶ C++: numeric::expression_parser::BinaryExpression::set_second_expression(class std::shared_ptr<const class numeric::expression_parser::Expression>) –> void
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
LTE_Expression
¶ Bases:
pyrosetta.rosetta.numeric.expression_parser.BinaryExpression
Less Than or Equal To
-
active_variables
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.std.list_std_string_std_allocator_std_string_t¶ C++: numeric::expression_parser::BinaryExpression::active_variables() const –> class std::list<std::string, class std::allocator<std::string > >
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.LTE_Expression, : pyrosetta.rosetta.numeric.expression_parser.LTE_Expression) → pyrosetta.rosetta.numeric.expression_parser.LTE_Expression¶ C++: numeric::expression_parser::LTE_Expression::operator=(const class numeric::expression_parser::LTE_Expression &) –> class numeric::expression_parser::LTE_Expression &
-
differentiate
(self: pyrosetta.rosetta.numeric.expression_parser.LTE_Expression, varname: str) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::LTE_Expression::differentiate(const class std::basic_string<char> &) const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
e1
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::BinaryExpression::e1() const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
e2
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::BinaryExpression::e2() const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
set_first_expression
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression, e1: pyrosetta.rosetta.numeric.expression_parser.Expression) → None¶ C++: numeric::expression_parser::BinaryExpression::set_first_expression(class std::shared_ptr<const class numeric::expression_parser::Expression>) –> void
-
set_second_expression
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression, e2: pyrosetta.rosetta.numeric.expression_parser.Expression) → None¶ C++: numeric::expression_parser::BinaryExpression::set_second_expression(class std::shared_ptr<const class numeric::expression_parser::Expression>) –> void
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
LT_Expression
¶ Bases:
pyrosetta.rosetta.numeric.expression_parser.BinaryExpression
Less Than
-
active_variables
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.std.list_std_string_std_allocator_std_string_t¶ C++: numeric::expression_parser::BinaryExpression::active_variables() const –> class std::list<std::string, class std::allocator<std::string > >
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.LT_Expression, : pyrosetta.rosetta.numeric.expression_parser.LT_Expression) → pyrosetta.rosetta.numeric.expression_parser.LT_Expression¶ C++: numeric::expression_parser::LT_Expression::operator=(const class numeric::expression_parser::LT_Expression &) –> class numeric::expression_parser::LT_Expression &
-
differentiate
(self: pyrosetta.rosetta.numeric.expression_parser.LT_Expression, varname: str) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::LT_Expression::differentiate(const class std::basic_string<char> &) const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
e1
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::BinaryExpression::e1() const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
e2
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::BinaryExpression::e2() const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
set_first_expression
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression, e1: pyrosetta.rosetta.numeric.expression_parser.Expression) → None¶ C++: numeric::expression_parser::BinaryExpression::set_first_expression(class std::shared_ptr<const class numeric::expression_parser::Expression>) –> void
-
set_second_expression
(self: pyrosetta.rosetta.numeric.expression_parser.BinaryExpression, e2: pyrosetta.rosetta.numeric.expression_parser.Expression) → None¶ C++: numeric::expression_parser::BinaryExpression::set_second_expression(class std::shared_ptr<const class numeric::expression_parser::Expression>) –> void
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
MetaMaxExpression
¶ Bases:
pyrosetta.rosetta.numeric.expression_parser.Expression
Evaluates ee1 when e1 is larger than e2; evaluates ee2 otherwise.
-
active_variables
(self: pyrosetta.rosetta.numeric.expression_parser.MetaMaxExpression) → pyrosetta.rosetta.std.list_std_string_std_allocator_std_string_t¶ C++: numeric::expression_parser::MetaMaxExpression::active_variables() const –> class std::list<std::string, class std::allocator<std::string > >
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.MetaMaxExpression, : pyrosetta.rosetta.numeric.expression_parser.MetaMaxExpression) → pyrosetta.rosetta.numeric.expression_parser.MetaMaxExpression¶ C++: numeric::expression_parser::MetaMaxExpression::operator=(const class numeric::expression_parser::MetaMaxExpression &) –> class numeric::expression_parser::MetaMaxExpression &
-
differentiate
(self: pyrosetta.rosetta.numeric.expression_parser.MetaMaxExpression, varname: str) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::MetaMaxExpression::differentiate(const class std::basic_string<char> &) const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
MetaMinExpression
¶ Bases:
pyrosetta.rosetta.numeric.expression_parser.Expression
Evaluates ee1 when e1 is less than e2; evaluates ee2 otherwise.
-
active_variables
(self: pyrosetta.rosetta.numeric.expression_parser.MetaMinExpression) → pyrosetta.rosetta.std.list_std_string_std_allocator_std_string_t¶ C++: numeric::expression_parser::MetaMinExpression::active_variables() const –> class std::list<std::string, class std::allocator<std::string > >
-
assign
(self: pyrosetta.rosetta.numeric.expression_parser.MetaMinExpression, : pyrosetta.rosetta.numeric.expression_parser.MetaMinExpression) → pyrosetta.rosetta.numeric.expression_parser.MetaMinExpression¶ C++: numeric::expression_parser::MetaMinExpression::operator=(const class numeric::expression_parser::MetaMinExpression &) –> class numeric::expression_parser::MetaMinExpression &
-
differentiate
(self: pyrosetta.rosetta.numeric.expression_parser.MetaMinExpression, varname: str) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::MetaMinExpression::differentiate(const class std::basic_string<char> &) const –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
-
class
pyrosetta.rosetta.numeric.expression_parser.
TokenType
¶ Bases:
pybind11_builtins.pybind11_object
Members:
INVALID_TOKEN_TYPE
LITERAL
VARIABLE
FUNCTION
COMMA
LEFT_PAREN
RIGHT_PAREN
PLUS_SYMBOL
SUBTRACT_SYMBOL
MULTIPLY_SYMBOL
DIVIDE_SYMBOL
AND_SYMBOL
OR_SYMBOL
NOT_SYMBOL
-
pyrosetta.rosetta.numeric.expression_parser.
parse_string_to_boolean_expression
(input_string: str) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::parse_string_to_boolean_expression(const class std::basic_string<char> &) –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
pyrosetta.rosetta.numeric.expression_parser.
parse_string_to_expression
(input_string: str) → pyrosetta.rosetta.numeric.expression_parser.Expression¶ C++: numeric::expression_parser::parse_string_to_expression(const class std::basic_string<char> &) –> class std::shared_ptr<const class numeric::expression_parser::Expression>
-
pyrosetta.rosetta.numeric.expression_parser.
token_type_name
(: pyrosetta.rosetta.numeric.expression_parser.TokenType) → str¶ C++: numeric::expression_parser::token_type_name(enum numeric::expression_parser::TokenType) –> std::string