@@ -63,7 +63,7 @@ function size(itp::BSplineInterpolation{T,N,TCoefs,IT,GT,pad}, d) where {T,N,TCo
63
63
end
64
64
65
65
@inline indices (itp:: BSplineInterpolation{T,N,TCoefs,IT,GT,pad} ) where {T,N,TCoefs,IT,GT,pad} =
66
- map_repeat ( indices_removepad, indices (itp. coefs), pad)
66
+ indices_removepad .( indices (itp. coefs), pad)
67
67
68
68
function indices (itp:: BSplineInterpolation{T,N,TCoefs,IT,GT,pad} , d) where {T,N,TCoefs,IT,GT,pad}
69
69
d <= N ? indices_removepad (indices (itp. coefs, d), padextract (pad, d)) : indices (itp. coefs, d)
@@ -106,28 +106,6 @@ offsetsym(off, d) = off == -1 ? Symbol("ixm_", d) :
106
106
@inline indices_addpad (inds, pad) = oftype (inds, first (inds): last (inds) + 2 * pad)
107
107
@inline indices_interior (inds, pad) = first (inds)+ pad: last (inds)- pad
108
108
109
- """
110
- map_repeat(f, a, b)
111
-
112
- Equivalent to `(f(a[1], b[1]), f(a[2], b[2]), ...)` if `a` and `b` are
113
- tuples of the same lengths, or `(f(a[1], b), f(a[2], b), ...)` if `b`
114
- is a scalar.
115
- """
116
- @generated function map_repeat (f, a:: NTuple{N,Any} , b:: NTuple{N,Any} ) where N
117
- ex = [:(f (a[$ i], b[$ i])) for i = 1 : N]
118
- quote
119
- $ (Expr (:meta , :inline ))
120
- ($ (ex... ),)
121
- end
122
- end
123
- @generated function map_repeat (f, a:: NTuple{N,Any} , b) where N
124
- ex = [:(f (a[$ i], b)) for i = 1 : N]
125
- quote
126
- $ (Expr (:meta , :inline ))
127
- ($ (ex... ),)
128
- end
129
- end
130
-
131
109
include (" constant.jl" )
132
110
include (" linear.jl" )
133
111
include (" quadratic.jl" )
0 commit comments