A direct method for photoacoustic tomography with inhomogeneous sound speed. (15th March 2016)