Skip to content

Commit f45ada3

Browse files
authored
Remove wrong transpose (#161)
* Remove wrong transpose * Fix
1 parent 3ad7fa6 commit f45ada3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ImplicitDifferentiation"
22
uuid = "57b37032-215b-411a-8a7c-41a003a55207"
33
authors = ["Guillaume Dalle", "Mohamed Tarek and contributors"]
4-
version = "0.6.2"
4+
version = "0.6.3"
55

66
[deps]
77
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

ext/ImplicitDifferentiationForwardDiffExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ function (implicit::ImplicitFunction)(
3030
kwargs...,
3131
)
3232

33-
dX = mapreduce(hcat, 1:N) do k
33+
dX = map(1:N) do k
3434
partials.(x_and_dx, k)
3535
end
36-
dC = mapreduce(hcat, eachcol(dX)) do dₖx
36+
dC = mapreduce(hcat, dX) do dₖx
3737
B * dₖx
3838
end
3939
dY = implicit.linear_solver(A, -dC)

src/operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function build_B(
164164
typeof(x),
165165
)
166166
else
167-
B = transpose(jacobian(cond_x, back_x, x, contexts...))
167+
B = jacobian(cond_x, back_x, x, contexts...)
168168
end
169169
return B
170170
end

0 commit comments

Comments
 (0)