Skip to content

Commit fbc8121

Browse files
committed
convert np.asfarray -> np.assarray( , dtype=float)
1 parent 7a2f747 commit fbc8121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/_static/lecture_specific/amss2/recursive_allocation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def objf(z):
230230
def objf_prime(x):
231231

232232
epsilon = 1e-7
233-
x0 = np.asfarray(x)
233+
x0 = np.asarray(x, dtype=float)
234234
f0 = np.atleast_1d(objf(x0))
235235
jac = np.zeros([len(x0), len(f0)])
236236
dx = np.zeros(len(x0))

0 commit comments

Comments
 (0)