« first day (1205 days earlier)      last day (2151 days later) » 

12:04 AM
Django is one of the worst culprits of that
 
12:27 AM
17 messages moved from Python
 
 
22 hours later…
10:23 PM
And that class implements .sum as github.com/scipy/scipy/blob/master/scipy/sparse/…
if axis == 0:
    # sum over columns
    ret = np.asmatrix(np.ones(
        (1, m), dtype=res_dtype)) * self
else:
    # sum over rows
    ret = self * np.asmatrix(np.ones((n, 1), dtype=res_dtype))
I.e. it multiplies the sparse matrix with a dense column or row matrix of ones. I suspect this leads to a dense result. And subclasses only override the axis is None case.
 
10:39 PM
3 messages moved from Python
 

« first day (1205 days earlier)      last day (2151 days later) »