[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
New implementation of sprandsym (please test)
From: |
Jordi Gutiérrez Hermoso |
Subject: |
New implementation of sprandsym (please test) |
Date: |
Sat, 24 Sep 2011 03:55:32 -0500 |
Following Rik's request to fix the sprand functions, I attempted a new
implementation of sprandsym. I hope it's not too convoluted or
difficult to understand:
http://hg.savannah.gnu.org/hgweb/octave/rev/abf1e00111dd
All tests now pass, including the explicit density one. Profilng it,
it seems to perform only slightly slower than the previous version,
due to slowness on randperm for large inputs. I am considering some
simple optimisations for randperm to fix this.
HTH,
- Jordi G. H.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- New implementation of sprandsym (please test),
Jordi Gutiérrez Hermoso <=