gpflow.kernels.periodic#

Functions#

gpflow.kernels.periodic.difference_matrix#

gpflow.kernels.periodic.difference_matrix(X, X2)[source]#

Returns (X - X2ᵀ)

This function can deal with leading dimensions in X and X2. For example, If X has shape [M, D] and X2 has shape [N, D], the output will have shape [M, N, D]. If X has shape [I, J, M, D] and X2 has shape [K, L, N, D], the output will have shape [I, J, M, K, L, N, D].

Parameters
  • X (Tensor) –

  • X2 (Optional[Tensor]) –

Return type

Tensor