We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82a1605 commit 6c73192Copy full SHA for 6c73192
src/utils.jl
@@ -13,3 +13,4 @@ export is_operation
13
Count the nodes in a symbolic expression tree satisfying `isterm` and `getargs`.
14
"""
15
node_count(t) = isterm(t) ? reduce(+, node_count(x) for x in getargs(t), init=0) + 1 : 1
16
+export node_count
0 commit comments