xnn.krnn.kernels.safe_norm#

xnn.krnn.kernels.safe_norm(x)[source]#

Euclidean norm over the last axis with a zero gradient at the origin.

Exact for the Matern kernels of order 5/2 and above, whose radial functions have zero slope at r = 0.

Parameters:

x (Tensor)

Return type:

Tensor