How to export potential operator as matrix

Hi, I want to construct an “acoustic transfer matrix”, which maps source pressure on the boundary to the field points. Construction of the transfer matrix requires operator inverse on the boundary operator. Yes, I can convert boundary operator into matrix. However, I can’t find a way to convert potential operator into a (strong form) matrix.