1 #ifndef HOPS_SQUAREDEXPONENTIALKERNEL_HPP
2 #define HOPS_SQUAREDEXPONENTIALKERNEL_HPP
7 template<
typename MatrixType,
typename VectorType>
18 for (
long i = 0; i < x.rows(); ++i) {
19 for (
long j = 0; j < y.rows(); ++j) {
20 VectorType diff = (x.row(i) - y.row(j)).transpose();
21 double squaredDistance = diff.transpose() * diff;
23 covariance(i, j) = val;
36 #endif // HOPS_SQUAREDEXPONENTIALKERNEL_HPP