MLPACK  1.0.4
linear_kernel.hpp
Go to the documentation of this file.
00001 
00024 #ifndef __MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP
00025 #define __MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP
00026 
00027 #include <mlpack/core.hpp>
00028 
00029 namespace mlpack {
00030 namespace kernel {
00031 
00042 class LinearKernel
00043 {
00044  public:
00049   LinearKernel() { }
00050 
00060   template<typename VecType>
00061   static double Evaluate(const VecType& a, const VecType& b)
00062   {
00063     return arma::dot(a, b);
00064   }
00065 };
00066 
00067 }; // namespace kernel
00068 }; // namespace mlpack
00069 
00070 #endif