MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / _rpropagate

Function _rpropagate

Core/Variational/expression.cpp:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void _rpropagate(var& v){
57 if(v.getChildren().empty())
58 return;
59 std::vector<var> children = v.getChildren();
60 for(var& _v : children){
61 _rpropagate(_v);
62 }
63 v.setValue(v._eval());
64}
65
66MatrixXd expression::propagate(){
67 _rpropagate(root);

Callers 1

propagateMethod · 0.85

Calls 4

getChildrenMethod · 0.80
_evalMethod · 0.80
emptyMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected