fatiando / harmonica

Forward modeling, inversion, and processing gravity and magnetic data
https://www.fatiando.org/harmonica
BSD 3-Clause "New" or "Revised" License
208 stars 68 forks source link

Rewrite check for point inside tesseroid with Numba #419

Closed santisoler closed 1 year ago

santisoler commented 1 year ago

Rewrite the functions that checks if a computation point falls inside a tesseroid using Numba instad of Numpy. This greatly reduce the memory need of the Numpy functions, that required to build large matrices even for medium-size problems.

Relevant issues/PRs:

Fixes #417

santisoler commented 1 year ago

@leouieda I think this is ready to be merge. If you would like to give it a second look, feel free to do so.