« first day (116 days earlier)      last day (605 days later) » 

08:27
def where(x, upper_level=[]):
 if type(x[0]) != list:
  return sum([(upper_level+[i])*e for i,e in enumerate(x)],[])
 else:
  return [where(e, upper_level + [i]) for i,e in enumerate(x)]
^ multidimensional where
@lyxal i have a problem, there are 2 atoms for the left and right argument of the chain but i dont know how to implement it. if i import atoms in chains.py it causes a circular import. i think i have to keep the evaluation in a separate file.
@lyxal done it is iota underbar
09:28
@mathcat fun fact: flax is now at v0.1.2
hopefully another release in a couple of days
woa nice
 
2 hours later…
11:23
@mathcat ^
> couple of days
lol
nice
@mathcat i thought it will take me that much time to figure out reshape :P
@mathcat lmao i broke an element
11:48
which one?
oh nvm

« first day (116 days earlier)      last day (605 days later) »