Skip to content

Commit

Permalink
fixed a small bug that prevented the taping of taylor coefficients wh…
Browse files Browse the repository at this point in the history
…en calling

AdolcProgram.reverse with P==1
  • Loading branch information
b45ch1 committed Dec 3, 2009
1 parent fc6eca3 commit bb7de9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adolc/cgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def reverse(self, Wbars):
# if P==1 then call direclty hov_ti_reverse
Vbar = numpy.zeros((Q,N,P,D+1))
for p in range(P):
if P>1:
if P>=1:
Vtmp = self.V[:,p,:]
wrapped_functions.hos_forward(self.tape_tag, self.x, Vtmp, D+1)
(Vbar[:,:,p,:],nz) = wrapped_functions.hov_ti_reverse(self.tape_tag, Wbar[:,:,p,:])
Expand Down

0 comments on commit bb7de9d

Please sign in to comment.