Skip to content

Commit 6fb7e59

Browse files
Alexey Stukalovalyst
authored andcommitted
get_degrees(): avoid broadcasting
1 parent f67fd40 commit 6fb7e59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ordering.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ function get_degrees(expr)
3636
(x,y)->(x...,y...,), args)
3737
elseif op == (+)
3838
ds = map(get_degrees, args)
39-
_, idx = findmax(x->sum(last.(x), init=0), ds)
39+
_, idx = findmax(x->sum(last, x, init=0), ds)
4040
return ds[idx]
4141
elseif op == (getindex)
42-
return ((Symbol.(args)...,) => 1,)
42+
return (Tuple(map(Symbol, args)) => 1,)
4343
else
4444
return ((Symbol("zzzzzzz", hash(expr)),) => 1,)
4545
end

0 commit comments

Comments
 (0)