Skip to content

Commit d5670d2

Browse files
committed
Delete ProductTangent
1 parent a798838 commit d5670d2

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/stage1/forward.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ partial(x::TangentBundle, i) = partial(getfield(x, :tangent), i)
22
partial(x::ExplicitTangent, i) = getfield(getfield(x, :partials), i)
33
partial(x::TaylorTangent, i) = getfield(getfield(x, :coeffs), i)
44
partial(x::UniformTangent, i) = getfield(x, :val)
5-
partial(x::ProductTangent, i) = ProductTangent(map(x->partial(x, i), getfield(x, :factors)))
65
partial(x::AbstractZero, i) = x
76

87

src/tangent.jl

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,6 @@ Base.getindex(tangent::TaylorTangent, tti::TaylorTangentIndex) = tangent.coeffs[
137137
Base.getindex(tangent::TaylorTangent, tti::CanonicalTangentIndex) = tangent.coeffs[count_ones(tti.i)]
138138

139139

140-
"""
141-
struct ProductTangent{T <: Tuple{Vararg{AbstractTangentSpace}}}
142-
143-
Represents the product space of the given representations of the
144-
tangent space.
145-
"""
146-
struct ProductTangent{T <: Tuple} <: AbstractTangentSpace
147-
factors::T
148-
end
149-
150140
"""
151141
struct UniformTangent
152142
@@ -191,7 +181,7 @@ end
191181
struct TangentBundle{N, B, P}
192182
193183
Represents a tangent bundle as an explicit primal together
194-
with some representation of (potentially a product of) the tangent space.
184+
with some representation of the tangent space.
195185
"""
196186
TangentBundle
197187

0 commit comments

Comments
 (0)