@@ -206,20 +206,25 @@ end
206206
207207const TaylorBundle{N, B, P} = TangentBundle{N, B, TaylorTangent{P}}
208208
209+
210+ function TaylorBundle {N, B, P} (primal:: B , coeffs:: P ) where {N, B, P}
211+ check_taylor_invariants (coeffs, primal, N)
212+ _TangentBundle (Val {N} (), primal, TaylorTangent (coeffs))
213+ end
209214function TaylorBundle {N, B} (primal:: B , coeffs) where {N, B}
210215 check_taylor_invariants (coeffs, primal, N)
211216 _TangentBundle (Val {N} (), primal, TaylorTangent (coeffs))
212217end
218+ function TaylorBundle {N} (primal, coeffs) where {N}
219+ check_taylor_invariants (coeffs, primal, N)
220+ _TangentBundle (Val {N} (), primal, TaylorTangent (coeffs))
221+ end
213222
214223function check_taylor_invariants (coeffs, primal, N)
215224 @assert length (coeffs) == N
216-
217225end
218226@ChainRulesCore . non_differentiable check_taylor_invariants (coeffs, primal, N)
219227
220- function TaylorBundle {N} (primal, coeffs) where {N}
221- _TangentBundle (Val {N} (), primal, TaylorTangent (coeffs))
222- end
223228
224229function Base. show (io:: IO , x:: TaylorBundle{1} )
225230 print (io, x. primal)
0 commit comments