Skip to content

Commit bfcf1f6

Browse files
committed
remove unnecessary partials_to_list function
1 parent fd5acca commit bfcf1f6

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

ext/LinearSolveForwardDiffExt.jl

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -342,26 +342,4 @@ function nodual_value(x::AbstractArray{<:Dual})
342342
return result
343343
end
344344

345-
346-
function partials_to_list(partial_matrix::AbstractVector{T}) where {T}
347-
p = eachindex(first(partial_matrix))
348-
[[partial[i] for partial in partial_matrix] for i in p]
349-
end
350-
351-
function partials_to_list(partial_matrix)
352-
p = length(first(partial_matrix))
353-
m, n = size(partial_matrix)
354-
res_list = fill(zeros(typeof(partial_matrix[1, 1][1]), m, n), p)
355-
for k in 1:p
356-
res = zeros(typeof(partial_matrix[1, 1][1]), m, n)
357-
for i in 1:m
358-
for j in 1:n
359-
res[i, j] = partial_matrix[i, j][k]
360-
end
361-
end
362-
res_list[k] = res
363-
end
364-
return res_list
365-
end
366-
367345
end

0 commit comments

Comments
 (0)