Skip to content

Commit

Permalink
rephrase a tracer.py loop so that it uses more than one line of code …
Browse files Browse the repository at this point in the history
…so that I can trace my error more accurately
  • Loading branch information
alexbrc committed Dec 8, 2012
1 parent 9a1ca74 commit 2f30563
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion algopy/tracer/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ def f(x1, x2):
else:
x_list = [x]

utpm_x_list = [algopy.UTPM(numpy.asarray(xi).reshape((1,1) + numpy.shape(xi))) for xi in x_list]
utpm_x_list = []
for xi in x_list:
element = numpy.asarray(xi).reshape((1,1) + numpy.shape(xi))
utpm_x_list.append(algopy.UTPM(element))

self.pushforward(utpm_x_list)

Expand Down

0 comments on commit 2f30563

Please sign in to comment.