16 #ifndef __MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP
17 #define __MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP
52 template<
typename VecType>
53 static double Evaluate(
const VecType& a,
const VecType& b)
55 return arma::dot(a, b);
61 std::ostringstream convert;
62 convert <<
"LinearKernel [" <<
this <<
"]" << std::endl;
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.
Linear algebra utility functions, generally performed on matrices or vectors.
std::string ToString() const
Return a string representation of the kernel.
The simple linear kernel (dot product).