Green's matrix from Jacobi-matrix Hamiltonian