Skip to content

Instantly share code, notes, and snippets.

@mu-777
Last active August 29, 2015 14:20
Show Gist options
  • Save mu-777/2c51ec1e033269188430 to your computer and use it in GitHub Desktop.
Save mu-777/2c51ec1e033269188430 to your computer and use it in GitHub Desktop.
mat = [[11,12,13],[21,22,23],[31,32,33]]
vec = [mat[i][j] for i, j in [(i, j) for i in range(len(mat)) for j in range(len(mat[0]))]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment