On the absorption matrix in a non-uniform magnetic field