src/Gradient.jl

changeset 5
29b38780d52b
parent 4
5c0f579a5d0f
child 7
ab7d59b47140
equal deleted inserted replaced
4:5c0f579a5d0f 5:29b38780d52b
199 ∇₃ᵀ!(u[j, :, :, :],v₁[j, :, :, :],v₂[j, :, :, :],v₃[j, :, :, :]) 199 ∇₃ᵀ!(u[j, :, :, :],v₁[j, :, :, :],v₂[j, :, :, :],v₃[j, :, :, :])
200 end 200 end
201 return u 201 return u
202 end 202 end
203 203
204 #####################################################
205 # Precompilation hints to speed up compilation time
206 # for projects depending on this package (hopefully).
207 ######################################################
208
209 precompile(∇₂!, (Array{Float64,2}, Array{Float64,2}, Array{Float64,2}))
210 precompile(∇₂!, (Array{Float64,3}, Array{Float64,2}))
211 precompile(∇₂ᵀ!, (Array{Float64,2}, Array{Float64,2}, Array{Float64,2}))
212 precompile(∇₂ᵀ!, (Array{Float64,2}, Array{Float64,3}))
213 precompile(∇₂c!, (Array{Float64,3}, Array{Float64,2}))
214 precompile(∇₃!, (Array{Float64,3}, Array{Float64,3}, Array{Float64,3},Array{Float64,3}))
215 precompile(∇₃ᵀ!, (Array{Float64,3}, Array{Float64,3}, Array{Float64,3},Array{Float64,3}))
216 precompile(vec∇₃!, (Array{Float64,4}, Array{Float64,4}, Array{Float64,4},Array{Float64,4}))
217 precompile(vec∇₃ᵀ!, (Array{Float64,4}, Array{Float64,4}, Array{Float64,4},Array{Float64,4}))
218
219 # The folding functions cannot be precompiled as theyre' meant to be (hopefully)
220 # inlined in such a way that the parameter function also gets inlined withou our
221 # code
222
204 end # Module 223 end # Module

mercurial