Created
January 16, 2017 18:33
-
-
Save akhalsa/ddd3bdaa5ffe9fc6de04a0c01a6d0bb1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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