Created
August 27, 2014 14:56
-
-
Save psinger/c5d838433add35df6a74 to your computer and use it in GitHub Desktop.
reference confusion
This file contains 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 change(a): | |
a[0,0] = 5 | |
a = a / a.sum() | |
a[0,0] = 7 | |
print a | |
a = csr_matrix((2,2)) | |
a[0,0] = 2 | |
a[1,1] = 2 | |
print a | |
change(a) | |
print a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment