K-matrix calculation for general nonlocal potentials - CPC, Mendeley (Mendeley, 1990)