Skip to content

Instantly share code, notes, and snippets.

@akhalsa
Created January 16, 2017 18:33
Show Gist options
  • Save akhalsa/ddd3bdaa5ffe9fc6de04a0c01a6d0bb1 to your computer and use it in GitHub Desktop.
Save akhalsa/ddd3bdaa5ffe9fc6de04a0c01a6d0bb1 to your computer and use it in GitHub Desktop.
def expSum(items):
temp = np.copy(items)
for x in np.nditer(temp, op_flags=['readwrite']):
x[...] = np.exp( x)
return np.sum(temp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment