Function cross_gram_matrix
Source pub fn cross_gram_matrix<S1, S2>(
x: &ArrayBase<S1, Ix2>,
y: &ArrayBase<S2, Ix2>,
kernel: &KernelType,
) -> Result<Array2<f64>>
Expand description
Compute the Gram matrix between two datasets
K[i,j] = k(x_i, y_j)
§Arguments
x - First input data, shape (n_x, n_features)
y - Second input data, shape (n_y, n_features)
kernel - The kernel function type
§Returns
Result<Array2<f64>> - The cross-kernel matrix, shape (n_x, n_y)