Skip to content

Commit 6f75504

Browse files
committed
Clean up comments
1 parent cb4cec3 commit 6f75504

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/EvaluateEquation.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,10 @@ end
149149
function deg2_eval(
150150
cumulator_l::AbstractVector{T}, cumulator_r::AbstractVector{T}, op::F, ::Val{turbo}
151151
)::Tuple{AbstractVector{T},Bool} where {T<:Real,F,turbo}
152-
# We check inputs (and intermediates), not outputs.
153152
@maybe_turbo turbo for j in indices(cumulator_l)
154153
x = op(cumulator_l[j], cumulator_r[j])::T
155154
cumulator_l[j] = x
156155
end
157-
# return (cumulator, finished_loop) #
158156
return (cumulator_l, true)
159157
end
160158

@@ -171,8 +169,8 @@ end
171169
function deg0_eval(
172170
tree::Node{T}, cX::AbstractMatrix{T}
173171
)::Tuple{AbstractVector{T},Bool} where {T<:Real}
174-
n = size(cX, 2)
175172
if tree.constant
173+
n = size(cX, 2)
176174
return (fill(tree.val::T, n), true)
177175
else
178176
return (cX[tree.feature, :], true)

0 commit comments

Comments
 (0)