Skip to content

Commit

Permalink
Remove collect()
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed May 14, 2024
1 parent 1c027cb commit 15e185f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contract.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function logscalar(
denominator_terms
end

if any(t -> iszero(t), collect(denominator_terms))
if any(t -> iszero(t), denominator_terms)
return -Inf
else
return sum(log.(numerator_terms)) - sum(log.((denominator_terms)))
Expand Down

0 comments on commit 15e185f

Please sign in to comment.