Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
fd06a40
1
Parent(s):
fc6dd4d
Undo recursive distributed spawning, as slow
Browse files- julia/sr.jl +1 -2
julia/sr.jl
CHANGED
@@ -247,8 +247,7 @@ function evalTreeArray(tree::Node)::Array{Float32, 1}
|
|
247 |
elseif tree.degree == 1
|
248 |
return unaops[tree.op].(evalTreeArray(tree.l))
|
249 |
else
|
250 |
-
|
251 |
-
return binops[tree.op].(evalTreeArray(tree.l), fetch(right))
|
252 |
end
|
253 |
end
|
254 |
|
|
|
247 |
elseif tree.degree == 1
|
248 |
return unaops[tree.op].(evalTreeArray(tree.l))
|
249 |
else
|
250 |
+
return binops[tree.op].(evalTreeArray(tree.l), evalTreeArray(tree.r))
|
|
|
251 |
end
|
252 |
end
|
253 |
|