def pure_nash_brute_gen(g):
 for a in np.ndindex(*g.nums_actions):
  if g.is_nash(a):
   (yield a)

def pure_nash_brute_gen ( g ) : for a in np . ndindex ( * g . nums_actions ) : if g . is_nash ( a ) : ( yield a )
generator version of pure_nash_brute .