Skip to content

Instantly share code, notes, and snippets.

@PiotrZakrzewski
Created October 30, 2015 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PiotrZakrzewski/23a459f43e6adec2d18c to your computer and use it in GitHub Desktop.
Save PiotrZakrzewski/23a459f43e6adec2d18c to your computer and use it in GitHub Desktop.
Vector comprehension in python numpy
numpy.fromiter((<some_func>(x) for x in <something>),<dtype>,<size of something>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment