{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues/163","repository_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl","labels_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues/163/comments","events_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues/163/events","html_url":"https://github.com/JuliaDiff/ForwardDiff.jl/issues/163","id":193206459,"number":163,"title":"extract_gradient! does not work for outputting to an Array","user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-02T20:07:59Z","updated_at":"2016-12-03T14:25:36Z","closed_at":null,"body":"While this is an internal function, I think this behavior is weird. It should just extract the partials into the passed vector I presume?\r\n\r\n```jl\r\njulia> ForwardDiff.extract_gradient!(zeros(3), ForwardDiff.Dual(1.0, (2.0,3.0,4.0)))\r\n------ MethodError --------------------- Stacktrace (most recent call last)\r\n\r\n [1] — extract_gradient!(::Array{Float64,1}, ::ForwardDiff.Dual{3,Float64}) at gradient.jl:40\r\n [2] — copy!(::Array{Float64,1}, ::ForwardDiff.Partials{3,Float64}) at multidimensional.jl:614\r\n\r\nMethodError: no method matching getindex(::Tuple{Float64,Float64,Float64}, ::CartesianIndex{1})\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues/comments/264642354","html_url":"https://github.com/JuliaDiff/ForwardDiff.jl/issues/163#issuecomment-264642354","issue_url":"https://api.github.com/repos/JuliaDiff/ForwardDiff.jl/issues/163","id":264642354,"user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T14:25:36Z","updated_at":"2016-12-03T14:25:36Z","body":"This happended here: https://travis-ci.org/JuliaDiff/ForwardDiff.jl/jobs/180792314#L356. strainge."}}
{"actor":{"display_login":"KristofferC"}}