Skip to content

Commit 6f80e5b

Browse files
committed
require order in FwdMap calls
1 parent ccb31eb commit 6f80e5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stage1/forward.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,16 +309,16 @@ end
309309
struct FwdMap{N, E, T<:AbstractTangentBundle{N}}
310310
f::T
311311
end
312-
FwdMap{E}(f::T) where {N, E, T<:AbstractTangentBundle{N}} = FwdMap{N,E,T}(f)
312+
FwdMap{N,E}(f::T) where {N, E, T<:AbstractTangentBundle{N}} = FwdMap{N,E,T}(f)
313313
(f::FwdMap{N,E})(args::AbstractTangentBundle{N}...) where {N,E} = ∂☆{N,E}()(f.f, args...)
314314

315315
function (::∂☆{N,E})(::AbstractZeroBundle{N, typeof(map)}, f::ATB{N}, tup::TaylorBundle{N, <:Tuple}) where {N,E}
316-
∂vararg{N}()(map(FwdMap{E}(f), destructure(tup))...)
316+
∂vararg{N}()(map(FwdMap{N, E}(f), destructure(tup))...)
317317
end
318318

319319
function (::∂☆{N,E})(::AbstractZeroBundle{N, typeof(map)}, f::ATB{N}, args::ATB{N, <:AbstractArray}...) where {N,E}
320320
# TODO: This could do an inplace map! to avoid the extra rebundling
321-
rebundle(map(FwdMap{E}(f), map(unbundle, args)...))
321+
rebundle(map(FwdMap{N,E}(f), map(unbundle, args)...))
322322
end
323323

324324
function (::∂☆{N,E})(::AbstractZeroBundle{N, typeof(map)}, f::ATB{N}, args::ATB{N}...) where {N, E}

0 commit comments

Comments
 (0)