Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jun 5, 2012
  1. @dwf
Commits on Jun 4, 2012
  1. @dwf

    ENH: Added an out= argument to sparse todense().

    dwf authored
    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.
  2. @dwf

    ENH: Added an out= argument to sparse toarray().

    dwf authored
    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.
Commits on May 28, 2012
  1. @dwf
  2. @dwf

    ENH: 'order' keyword for todense() on sparse types

    dwf authored
    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.
  3. @dwf

    ENH: 'order' keyword for toarray() on sparse types

    dwf authored
    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.
Something went wrong with that request. Please try again.