16 #ifndef __MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP
17 #define __MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP
54 template<
typename VecTypeA,
typename VecTypeB>
55 static double Evaluate(
const VecTypeA& a,
const VecTypeB& b)
57 return arma::dot(a, b);
61 template<
typename Archive>
LinearKernel()
This constructor does nothing; the linear kernel has no parameters to store.
Linear algebra utility functions, generally performed on matrices or vectors.
The simple linear kernel (dot product).
void Serialize(Archive &, const unsigned int)
Serialize the kernel (it has no members... do nothing).
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
static double Evaluate(const VecTypeA &a, const VecTypeB &b)
Simple evaluation of the dot product.