-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sparse: Add "order" and "out" arguments to todense() and toarray() #229
Commits on May 28, 2012
-
ENH: 'order' keyword for toarray() on sparse types
This adds an 'order' keyword to select the memory layout of the resulting array when using toarray() to create a dense array from a sparse matrix type. The default remains a C-contiguous array. Tests are also updated to test both the default and explicit 'C' and 'F' modes. Generated output of SWIG will follow in a separate commit, so that this one can be easily cherry-picked if what I generated is unsatisfactory.
Configuration menu - View commit details
-
Copy full SHA for ea15fab - Browse repository at this point
Copy the full SHA ea15fabView commit details -
ENH: 'order' keyword for todense() on sparse types
This adds an 'order' keyword to select the memory layout of the resulting object when using todense() to create a numpy matrix object from a sparse matrix type, similarly to the previous change to toarray(). The default remains a C-contiguous matrix. Tests are also updated to test both the default and explicit 'C' and 'F' modes. Generated output of SWIG will follow in a separate commit, so that this one can be easily cherry-picked if what I generated is unsatisfactory.
Configuration menu - View commit details
-
Copy full SHA for 3099154 - Browse repository at this point
Copy the full SHA 3099154View commit details -
New SWIG wrapper for toarray()/todense() addition.
This commit contains SWIG-generated code only.
Configuration menu - View commit details
-
Copy full SHA for 5febad9 - Browse repository at this point
Copy the full SHA 5febad9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed8f27f - Browse repository at this point
Copy the full SHA ed8f27fView commit details
Commits on Jun 4, 2012
-
ENH: Added an out= argument to sparse toarray().
Mutually exclusive to the previously added 'order=' argument, this should serve the same crowd, i.e. people who occasionally need a dense copy of their sparse matrix but *really* can't afford to be allocating an array that size over and over again. Refactored a bit into the base class so as to not duplicate code between lil.py and coo.py. Tests included.
Configuration menu - View commit details
-
Copy full SHA for 5378661 - Browse repository at this point
Copy the full SHA 5378661View commit details -
ENH: Added an out= argument to sparse todense().
This matches the new argument in the array version, toarray(). out is not required to be a numpy.matrix but is wrapped in one upon return.
Configuration menu - View commit details
-
Copy full SHA for 34c5eaa - Browse repository at this point
Copy the full SHA 34c5eaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ceeefa - Browse repository at this point
Copy the full SHA 0ceeefaView commit details
Commits on Jun 5, 2012
-
Configuration menu - View commit details
-
Copy full SHA for 06cc844 - Browse repository at this point
Copy the full SHA 06cc844View commit details