I have defined my gaussian variogram like this
$r(h) = \text{nugget} + \text{partial_sill}\cdot(1 - \exp(-\frac{3h^2}{\text{range}^2}))$
I set nugget = 0.1343 partial_sill = 0.3125 range = 19.8642
I tried to create a variogram for a spatial grid of size 5x5, meaning for each of the location in the 5x5 grid, I calculated the value of the variogram with distance equal to its distance to the other locations in the grid.
So I had a matrix of size 25x25. However, this matrix is not positive definite and is singular. How can I remedy this issue with gaussian variogram?