@@ -209,16 +209,16 @@ function staticdim_findminmax_quote(OP, I, static_dims::Vector{Int}, N::Int)
209
209
# postj = Expr(:(=), Cᵥ′, setc)
210
210
# push!(rblock.args, postj)
211
211
# # strides, offsets
212
- # t = Expr(:tuple)
213
- # for d = 1:N
214
- # push!(t.args, Symbol(:D_, d))
215
- # end
216
- # sz = Expr(:(=), t, Expr(:call, :size, :A))
217
- # # ∑ₖ₌₁ᴺ(∏ᵢ₌₁ᵏ⁻¹Dᵢ) : 1 + D₁ + D₁D₂ + ⋯ + D₁D₂⋯Dₖ₋₁
218
- # dstar = Expr(:call, :+, 1)
219
- # for d = 2:N
220
- # push!(dstar.args, d == 2 ? :D_1 : Expr(:call, :*, ntuple(i -> Symbol(:D_, i), d - 1)...))
221
- # end
212
+ t = Expr (:tuple )
213
+ for d = 1 : N
214
+ push! (t. args, Symbol (:D_ , d))
215
+ end
216
+ sz = Expr (:(= ), t, Expr (:call , :size , :A ))
217
+ # ∑ₖ₌₁ᴺ(∏ᵢ₌₁ᵏ⁻¹Dᵢ) : 1 + D₁ + D₁D₂ + ⋯ + D₁D₂⋯Dₖ₋₁
218
+ dstar = Expr (:call , :+ , 1 )
219
+ for d = 2 : N
220
+ push! (dstar. args, d == 2 ? :D_1 : Expr (:call , :* , ntuple (i -> Symbol (:D_ , i), d - 1 )... ))
221
+ end
222
222
# Version which precomputes the unchanging components of setc.
223
223
tl = Expr (:tuple )
224
224
tr = Expr (:tuple )
@@ -783,15 +783,15 @@ function staticdim_tfindminmax_quote(OP, I, static_dims::Vector{Int}, N::Int)
783
783
# postj = Expr(:(=), Cᵥ′, setc)
784
784
# push!(rblock.args, postj)
785
785
# # strides, offsets
786
- # t = Expr(:tuple)
787
- # for d = 1:N
788
- # push!(t.args, Symbol(:D_, d))
789
- # end
790
- # sz = Expr(:(=), t, Expr(:call, :size, :A))
791
- # dstar = Expr(:call, :+, 1)
792
- # for d = 2:N
793
- # push!(dstar.args, d == 2 ? :D_1 : Expr(:call, :*, ntuple(i -> Symbol(:D_, i), d - 1)...))
794
- # end
786
+ t = Expr (:tuple )
787
+ for d = 1 : N
788
+ push! (t. args, Symbol (:D_ , d))
789
+ end
790
+ sz = Expr (:(= ), t, Expr (:call , :size , :A ))
791
+ dstar = Expr (:call , :+ , 1 )
792
+ for d = 2 : N
793
+ push! (dstar. args, d == 2 ? :D_1 : Expr (:call , :* , ntuple (i -> Symbol (:D_ , i), d - 1 )... ))
794
+ end
795
795
# Version which precomputes the unchanging components of setc.
796
796
tl = Expr (:tuple )
797
797
tr = Expr (:tuple )
0 commit comments