[SciPy-user] Getting the right numerical libraries for scipy
Fri Apr 3 06:24:08 CDT 2009
i agree with david.
Sparse matrix packages are for a density of O(N) for a (N,N) matrix.
On Fri, Apr 3, 2009 at 1:05 PM, David Cournapeau
> Stéfan van der Walt wrote:
>> 2009/4/2 William K. Coulter <firstname.lastname@example.org>:
>>> I wanted to optimize my python code to use the scipy.sparse library;
>>> however, benchmarking reveals that multiplying a sparse and dense matrix
>>> takes over 100 times as long as multiplying the equivalent two dense
>> I did some benchmarks now (see attached), and I see the same behaviour:
> Isn't this expected ? I thought that for sparse matrix to be useful, the
> density had to be much lower than the figures you used ?
> Maybe a more useful benchmark would be the dense/sparse ratio as a
> function of density for a given size,
> SciPy-user mailing list
More information about the SciPy-user