4 Comments
User's avatar
Yunfeng Wang's avatar

typo: np.cost should be np.cos

Bite Code!'s avatar

Thank you for noticing that.

Tyler Coles's avatar

I think your last example needs np.fromiter or some other approach, otherwise you get an array full of Generator objects.

Bite Code!'s avatar

itertools.chain.from_iterable, yes. Thanks you. I knew some comment would save the day :)