[SciPy-User] sparse distance matrix ?
josef.pktd at gmail.com
josef.pktd at gmail.com
Sun Apr 6 15:34:59 EDT 2014
On Sun, Apr 6, 2014 at 2:41 PM, Sturla Molden <sturla.molden at gmail.com> wrote:
> <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.
Thanks Sturla, I forgot to look there, because I don't need repeated look-up.
Josef
>
> Sturla
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
More information about the SciPy-User
mailing list