()
| 1125 | } |
| 1126 | |
| 1127 | func (mt *mathTree) extractVarNodes() []*mathTree { |
| 1128 | var nodeList []*mathTree |
| 1129 | for _, ch := range mt.Child { |
| 1130 | nodeList = append(nodeList, ch.extractVarNodes()...) |
| 1131 | } |
| 1132 | if mt.Var != "" { |
| 1133 | nodeList = append(nodeList, mt) |
| 1134 | return nodeList |
| 1135 | } |
| 1136 | return nodeList |
| 1137 | } |
| 1138 | |
| 1139 | const numThreadsVariablePropogation = 4 |
| 1140 |