24 #ifndef __MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP
25 #define __MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP
60 template<
typename VecType>
61 static double Evaluate(
const VecType& a,
const VecType& b)
63 return arma::dot(a, b);
LinearKernel()
This constructor does nothing; the linear kernel has no parameters to store.
static double Evaluate(const VecType &a, const VecType &b)
Simple evaluation of the dot product.
The simple linear kernel (dot product).