I'm reading one paper and on page 36 (48 in the pdf) it says:

Let d(s, i) be the (positive) diagonal terms that need to be subtracted from the matrix to make it negative semi-definite...

Could someone explain me why it's possible and how can I get the values of these terms?