https://peeterjoot.com/2016/09/27/greens-function-inversion-of-the-magnetostatic-equation/
Green's function inversion of the magnetostatic equation