Skip to content

Commit 49ec0be

Browse files
committed
remove workaround
1 parent 30412c4 commit 49ec0be

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/array-lib.jl

-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ function Broadcast.materialize(bc::Broadcast.Broadcasted{SymBroadcast})
165165
x
166166
end
167167
end
168-
169168
expr = term(bc.f, expr_args′...) # Imagine x .=> y -- if you don't have a term
170169
# then you get pairs, and index matcher cannot
171170
# recurse into pairs

src/arrays.jl

-15
Original file line numberDiff line numberDiff line change
@@ -558,21 +558,6 @@ function replace_by_scalarizing(ex, dict)
558558
scalarize(~x, (map(j->substitute(j, dict), ~~i)...,)))
559559

560560
simterm = (x, f, args; kws...) -> begin
561-
if f === Base.literal_pow && length(args) == 3
562-
#=
563-
julia> @variables u[1:3]
564-
1-element Vector{Symbolics.Arr{Num, 1}}:
565-
u[1:3]
566-
567-
julia> u.^1
568-
(broadcast(literal_pow, Base.RefValue{typeof(^)}(^), u, Base.RefValue{Val{1}}(Val{1}())))[1:3]
569-
=#
570-
base = args[2]
571-
exp = val2num(only(args[3]))
572-
f = only(args[1])
573-
args = [base, exp]
574-
end
575-
576561
if metadata(x) !== nothing
577562
similarterm(x, f, args; metadata=metadata(x))
578563
else

0 commit comments

Comments
 (0)