4 Comments
User's avatar
Yunfeng Wang's avatar

typo: np.cost should be np.cos

Expand full comment
Bite Code!'s avatar

Thank you for noticing that.

Expand full comment
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.

Expand full comment
Bite Code!'s avatar

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

Expand full comment