MLPACK  1.0.7
linear_kernel.hpp
Go to the documentation of this file.
1 
24 #ifndef __MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP
25 #define __MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP
26 
27 #include <mlpack/core.hpp>
28 
29 namespace mlpack {
30 namespace kernel {
31 
43 {
44  public:
50 
60  template<typename VecType>
61  static double Evaluate(const VecType& a, const VecType& b)
62  {
63  return arma::dot(a, b);
64  }
65 };
66 
67 }; // namespace kernel
68 }; // namespace mlpack
69 
70 #endif
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).