diff options
Diffstat (limited to 'ot/utils.py')
-rw-r--r-- | ot/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ot/utils.py b/ot/utils.py index b8a6f44..a633be2 100644 --- a/ot/utils.py +++ b/ot/utils.py @@ -48,6 +48,7 @@ def kernel(x1, x2, method='gaussian', sigma=1, **kwargs): K = np.exp(-dist(x1, x2) / (2 * sigma**2)) return K + def laplacian(x): """Compute Laplacian matrix""" L = np.diag(np.sum(x, axis=0)) - x |