kernel width calc
working on Gmatrix