Skip to content

Commit 5497adc

Browse files
committed
make sure AbstractArrays of size 1 are accounted for
1 parent 248718f commit 5497adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/LinearSolveForwardDiffExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ nodual_value(x::Dual{T, V, P}) where {T, V <: Dual, P} = x.value # Keep the inn
236236
nodual_value(x::AbstractArray{<:Dual}) = map(nodual_value, x)
237237

238238

239-
function partials_to_list(partial_matrix::Vector)
239+
function partials_to_list(partial_matrix::AbstractArray{T, 1}) where {T}
240240
p = eachindex(first(partial_matrix))
241241
[[partial[i] for partial in partial_matrix] for i in p]
242242
end

0 commit comments

Comments
 (0)