[SciPy-User] CSR sorting/duplication of entries

Chris Laumann claumann@physics.harvard....
Wed Apr 11 11:18:02 CDT 2012

Hi all-

Does anybody know whether it is safe (or rather, what breaks) if you use a CSR matrix whose rows are not sorted and may even include duplicate entries? Are duplicates treated additively? 

The main scipy.sparse documentation page notes that CSR rows are not necessarily sorted but doesn't address duplication. It also simply cryptically notes that you may need to sort the CSR rows when talking to other libraries, but doesn't specifically address whether they are always safe within scipy submodules..


More information about the SciPy-User mailing list