senchromatic / topological-data-analysis

Applied topology using abstract simplicial complexes
0 stars 0 forks source link

Fast vectorized distance matrix computation #18

Open aepereira opened 3 years ago

aepereira commented 3 years ago

Generic functions in which:

The distance matrix should be able to produce:

It is important that these functions be fast, since we will spend most of our cycles on this and ball collision detection based on these distances when constructing the Vietoris-Rips or Cech complex for the data. As such, I propose that we use a fast library such as ArrayFire (which has Python bindings) or numba for the distance matrix computation.

As an addition to this, there should be a function that takes as input a distance matrix and a given radius and returns the Boolean matrix of pairwise collisions all the balls of radius r.