pub fn linear_kernel<T: KernelScalar>(
m: usize,
n: usize,
k: usize,
x: &[T],
y: Option<&[T]>,
d: &mut [T],
) -> Result<()>Expand description
Linear kernel K(x, y) = x · y between rows of row-major matrices
x (m × k) and optionally y (n × k). Output d is m × n
(or m × m if y is None).