Skip to content

Commit d0922de

Browse files
committed
fix
1 parent 2afc6ef commit d0922de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+122
-121
lines changed

perf/plot_shootout.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ pGc = plot(dfGconstr, xgroup="dim", ygroup="ord", x="name", y="t", Geom.subplot_
3636
draw(PNG("constructionG.png", plotsize...), pGc)
3737

3838
pGr = plot(dfGeval, xgroup="dim", ygroup="ord", x="name", y="rate", Geom.subplot_grid(Geom.point), Scale.y_sqrt, Guide.ylabel("Throughput (pts/s) by order"))
39-
draw(PNG("rateG.png", plotsize...), pGr)
39+
draw(PNG("rateG.png", plotsize...), pGr)

perf/run_shootout.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ stuff!(x, index::CartesianIndex{4}) = (x[1] = index[1]; x[2] = index[2]; x[3] =
7777

7878
function evaluate_grid(grid::GridInterpolations.RectangleGrid, A)
7979
T = eltype(A)
80-
x = Array(eltype(T), ndims(A)) # in case T is RGB{Float32}
80+
x = Array{eltype(T)}( ndims(A)) # in case T is RGB{Float32}
8181
s = zero(T) + zero(T)
8282
vA = vec(A)
8383
for I in iterrange(A)
@@ -92,10 +92,10 @@ ax_constr(A) = ApproXD.Lininterp(A, Vector{Float64}[make_knots(A)...])
9292

9393
function evaluate_grid(grid::ApproXD.Lininterp, A)
9494
T = eltype(A)
95-
x = Array(eltype(T), ndims(A)) # in case T is RGB{Float32}
95+
x = Array{eltype(T)}( ndims(A)) # in case T is RGB{Float32}
9696
s = zero(T) + zero(T)
9797
vA = vec(A)
98-
result = Array(T,1)
98+
result = Array{T}(1)
9999
which = [1]
100100
for I in iterrange(A)
101101
stuff!(x, I)
@@ -181,4 +181,4 @@ for ieltype = 1:length(eltypes)
181181
end
182182
end
183183
end
184-
end
184+
end

src/Interpolations-old.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ stagedfunction gradient!{T,N,TCoefs,TOut,IT,EB}(g::Vector{TOut}, itp::Interpolat
222222
end
223223
end
224224

225-
gradient{T,N}(itp::Interpolation{T,N}, x...) = gradient!(Array(T,N), itp, x...)
225+
gradient{T,N}(itp::Interpolation{T,N}, x...) = gradient!(Array{T}(N), itp, x...)
226226

227227
# This creates prefilter specializations for all interpolation types that need them
228228
stagedfunction prefilter{TWeights,TCoefs,N,IT<:Quadratic}(::Type{TWeights}, A::Array{TCoefs,N}, it::IT)
@@ -258,4 +258,4 @@ end
258258

259259
nindexes(N::Int) = N == 1 ? "1 index" : "$N indexes"
260260

261-
end # module
261+
end # module

src/Interpolations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ include("extrapolation/extrapolation.jl")
9393
include("scaling/scaling.jl")
9494
include("utils.jl")
9595

96-
end # module
96+
end # module

src/b-splines/b-splines.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ include("quadratic.jl")
8484
include("cubic.jl")
8585
include("indexing.jl")
8686
include("prefiltering.jl")
87-
include("../filter1d.jl")
87+
include("../filter1d.jl")

src/b-splines/constant.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ function index_gen{IT<:DimSpec{BSpline}}(::Type{BSpline{Constant}}, ::Type{IT},
5050
indices = [offsetsym(offsets[d], d) for d = 1:N]
5151
return :(itp.coefs[$(indices...)])
5252
end
53-
end
53+
end

src/b-splines/cubic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,4 +316,4 @@ function prefiltering_system{T,TC,GT<:GridType}(::Type{T}, ::Type{TC}, n::Int,
316316
)
317317

318318
Woodbury(lufact!(Tridiagonal(dl, d, du), Val{false}), specs...), zeros(TC, n)
319-
end
319+
end

src/b-splines/indexing.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function gradient_impl{T,N,TCoefs,IT<:DimSpec{BSpline},GT<:DimSpec{GridType},Pad
5454
# For each component of the gradient, alternately calculate
5555
# coefficients and set component
5656
n = count_interp_dims(IT, N)
57-
exs = Array{Expr}(2n)
57+
exs = Array{Expr, 1}(2n)
5858
cntr = 0
5959
for d = 1:N
6060
if count_interp_dims(iextract(IT, d), 1) > 0
@@ -104,7 +104,7 @@ for R in [:Real, :Any]
104104
n = count_interp_dims(itp, N)
105105
Tg = promote_type(T, [x <: AbstractArray ? eltype(x) : x for x in xs]...)
106106
xargs = [:(xs[$d]) for d in 1:length(xs)]
107-
:(gradient!(Array{$Tg}($n), itp, $(xargs...)))
107+
:(gradient!(Array{$Tg, 1}($n), itp, $(xargs...)))
108108
end
109109
end
110110

@@ -153,7 +153,7 @@ end
153153
n = count_interp_dims(itp,N)
154154
TH = promote_type(T, [x <: AbstractArray ? eltype(x) : x for x in xs]...)
155155
xargs = [:(xs[$d]) for d in 1:length(xs)]
156-
:(hessian!(Array{TH}($n,$n), itp, $(xargs...)))
156+
:(hessian!(Array{TH, 2}($n,$n), itp, $(xargs...)))
157157
end
158158

159159
hessian1{T}(itp::AbstractInterpolation{T,1}, x) = hessian(itp, x)[1,1]

src/b-splines/linear.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ function index_gen{IT<:DimSpec{BSpline}}(::Type{BSpline{Linear}}, ::Type{IT}, N:
100100
indices = [offsetsym(offsets[d], d) for d = 1:N]
101101
return :(itp.coefs[$(indices...)])
102102
end
103-
end
103+
end

src/b-splines/prefiltering.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ type `IT`.
109109
110110
`dl`, `d`, and `du` are intended to be used e.g. as in `M = Tridiagonal(dl, d, du)`
111111
"""
112-
inner_system_diags
112+
inner_system_diags

0 commit comments

Comments
 (0)