[SciPy-User] sparse distance matrix ?

Sturla Molden sturla.molden at gmail.com
Sun Apr 6 14:41:30 EDT 2014


<josef.pktd at gmail.com> wrote:
> (sunday morning puzzle)
> 
> Is there a way to get thresholded distance matrices as sparse matrices
> without going through the full dense distance array or explicit
> looping?

scipy.spatial.cKDTree can do this.

Sturla




More information about the SciPy-User mailing list