Skip to content

Commit

Permalink
fix the range
Browse files Browse the repository at this point in the history
  • Loading branch information
zoomlogo committed Feb 20, 2024
1 parent fe8b5f8 commit f7ff8c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flax/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def iota(x):
return [[mpc(j[0], j[1]) for j in i] for i in iota([x.real, x.imag])]
else:
res = cartesian_product(*(iota(i) for i in x))
for i in x:
for i in x[::-1]:
res = split(int(abs(i)) if type2strn(i) != "lst" else len(i), res)
return res[0]

Expand All @@ -369,7 +369,7 @@ def iota1(x):
return [[mpc(j[0], j[1]) for j in i] for i in iota1([x.real, x.imag])]
else:
res = cartesian_product(*(iota1(i) for i in x))
for i in x:
for i in x[::-1]:
res = split(int(abs(i)) if type2strn(i) != "lst" else len(i), res)
return res[0]

Expand Down

0 comments on commit f7ff8c7

Please sign in to comment.