Skip to content

Commit 85a06e0

Browse files
authored
Merge pull request #373 from maxfreu/master
Improve type promotion for SVectors in tweight()
2 parents 16bb17a + 90e7793 commit 85a06e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/b-splines/b-splines.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ end
214214
# We can't just return a tuple-of-types due to julia #12500
215215
tweight(A::AbstractArray) = Float64
216216
tweight(A::AbstractArray{T}) where T<:AbstractFloat = T
217+
tweight(A::AbstractArray{<:AbstractVector{T}}) where {T} = T
217218
tweight(A::AbstractArray{Rational{Int}}) = Rational{Int}
218219
tweight(A::AbstractArray{T}) where {T<:Integer} = typeof(float(zero(T)))
219220

0 commit comments

Comments
 (0)