|
LMCAS
Lamina Computer Algebra System
|
变量节点,表示一个符号变量。 更多...
#include </home/runner/work/docs/docs/LMCAS/src/internal/symbolic_ast/arithmetic.hpp>
Public 成员函数 | |
| void | accept (LMCAS::detail::SymbolicVisitor &visitor) const override |
| std::shared_ptr< const SymbolicNode > | clone () const override |
| int | compare (const SymbolicNode &other) const |
| 与另一个节点进行全序比较. | |
| bool | equals (const SymbolicNode &other) const |
| 判断两个节点是否结构相等. | |
| std::size_t | hash () const |
| 获取节点哈希值(带缓存). | |
| bool | is_constant () const noexcept |
| virtual bool | is_number () const |
| virtual bool | is_one () const |
| virtual bool | is_positive () const |
| virtual bool | is_zero () const |
| const std::string & | name () const noexcept |
| int | type_priority () const override |
Protected 成员函数 | |
| int | compare_same_type (const SymbolicNode &other) const override |
| std::size_t | compute_hash () const override |
Protected 属性 | |
| std::atomic< std::size_t > | cached_hash {0} |
| std::atomic< bool > | hash_computed {false} |
Private 成员函数 | |
| VariableNode (std::string n, bool constant=false) | |
Private 属性 | |
| const bool | constant_ |
| LMCAS_AST_NODE_FACTORY_FRIEND | |
| const std::string | name_ |
变量节点,表示一个符号变量。
在文件 arithmetic.hpp 第 10 行定义.
|
inlineexplicitprivate |
在文件 arithmetic.hpp 第 17 行定义.
被这些函数引用 compare_same_type().
|
inlineoverridevirtual |
实现了 LMCAS::SymbolicNode.
在文件 arithmetic.hpp 第 46 行定义.
引用了 LMCAS::detail::SymbolicVisitor::visit().
|
inlineoverridevirtual |
实现了 LMCAS::SymbolicNode.
在文件 arithmetic.hpp 第 47 行定义.
引用了 constant_, LMCAS::detail::make_node() , 以及 name_.
被这些函数引用 LMCAS::InferenceEngine::Impl::deduce_function_relation() , 以及 LMCAS::InferenceEngine::Impl::deduce_power_relations().
|
inlineinherited |
与另一个节点进行全序比较.
| other | 待比较的节点 |
引用了 SymbolicNode(), compare_same_type() , 以及 type_priority().
被这些函数引用 LMCAS::anonymous_namespace{symbolic_cancel.cpp}::combine_fraction_terms() , 以及 LMCAS::endpoints_equivalent().
|
inlineoverrideprotectedvirtual |
实现了 LMCAS::SymbolicNode.
在文件 arithmetic.hpp 第 38 行定义.
引用了 LMCAS::SymbolicNode::SymbolicNode(), VariableNode(), constant_ , 以及 name_.
|
inlineoverrideprotectedvirtual |
实现了 LMCAS::SymbolicNode.
在文件 arithmetic.hpp 第 32 行定义.
引用了 constant_, LMCAS::SymbolicNode::hash(), LMCAS::hash_combine() , 以及 name_.
|
inlineinherited |
判断两个节点是否结构相等.
| other | 待比较的节点 |
引用了 SymbolicNode(), compare_same_type(), hash() , 以及 type_priority().
被这些函数引用 LMCAS::complementary_square(), LMCAS::anonymous_namespace{relation_store.cpp}::expr_equals(), LMCAS::match_recursive(), LMCAS::tf_remove_exp_factor() , 以及 LMCAS::tf_substitute_expr().
|
inlineinherited |
获取节点哈希值(带缓存).
引用了 cached_hash, compute_hash() , 以及 hash_computed.
被这些函数引用 LMCAS::MatrixNode::compute_hash(), LMCAS::VariableNode::compute_hash() , 以及 equals().
|
inlinenoexcept |
在文件 arithmetic.hpp 第 27 行定义.
引用了 constant_.
被这些函数引用 LMCAS::anonymous_namespace{expr_serialization.cpp}::Writer::visit().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
被 LMCAS::ComplexNode , 以及 LMCAS::NumberNode 重载.
被这些函数引用 LMCAS::complex_div_checked(), LMCAS::MatrixNode::compute_hash(), LMCAS::anonymous_namespace{expr_number_domains.cpp}::domain_contains_complex(), LMCAS::is_analytic_impl(), LMCAS::is_euler_equation(), LMCAS::anonymous_namespace{matrix_quadratic_form.cpp}::reconstructs_expression(), LMCAS::anonymous_namespace{complex_analysis.cpp}::split_real_imag() , 以及 LMCAS::symbolic_poly_to_expr().
|
inlinenoexcept |
|
inlineoverridevirtual |
|
mutableprotectedinherited |
被这些函数引用 SymbolicNode() , 以及 hash().
|
private |
在文件 arithmetic.hpp 第 15 行定义.
被这些函数引用 VariableNode(), clone(), compare_same_type(), compute_hash() , 以及 is_constant().
|
mutableprotectedinherited |
被这些函数引用 SymbolicNode() , 以及 hash().
|
private |
在文件 arithmetic.hpp 第 12 行定义.
|
private |
在文件 arithmetic.hpp 第 14 行定义.
被这些函数引用 VariableNode(), clone(), compare_same_type(), compute_hash() , 以及 name().