Skip to content

Commit 0cb2062

Browse files
committed
Update recurrence.jl
1 parent a417fc4 commit 0cb2062

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/recurrence.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const RecurrenceMatrix{T, Z<:AbstractVector, A<:AbstractVector, B<:AbstractVecto
2424
RecurrenceArray(z, A, B, C, data::Array{T,N}, datasize, p0, p1) where {T,N} = RecurrenceArray{T,N,typeof(z),typeof(A),typeof(B),typeof(C)}(z, A, B, C, data, datasize, p0, p1, T[])
2525

2626
function initiateforwardrecurrence(N, A, B, C, x, μ)
27-
T = polynomialtype(eltype(A), eltype(B), eltype(C), typeof(x))
27+
T = polynomialtype(promote_type(eltype(A), eltype(B), eltype(C)), typeof(x))
2828
p0 = convert(T, μ)
2929
N == 0 && return zero(T), p0
3030
p1 = convert(T, muladd(A[1],x,B[1])*p0)

0 commit comments

Comments
 (0)