def mgf_kmesh(self,omega,kmesh):
'''
Returns the mesh of the Green's functions in the mixed representation with respect to momentums.
Parameters
----------
omega : np.complex128/np.complex64
The frequency of the mixed Green's functions.
kmesh : (n+1)d ndarray like
The kmesh of the mixed Green's functions.
And n is the spatial dimension of the system.
Returns
-------
3d ndarray
The mesh of the mixed Green's functions.
'''
cgf=self.cgf(omega)
return np.tensordot(cgf,inv(np.identity(cgf.shape[0],dtype=cgf.dtype)-self.pt_kmesh(kmesh).dot(cgf)),axes=([1],[1])).transpose((1,0,2))
评论列表
文章目录