14 #ifndef MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP 15 #define MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP 52 template<
typename VecTypeA,
typename VecTypeB>
53 static double Evaluate(
const VecTypeA& a,
const VecTypeB& b)
55 return arma::dot(a, b);
59 template<
typename Archive>
Linear algebra utility functions, generally performed on matrices or vectors.
The simple linear kernel (dot product).
The core includes that mlpack expects; standard C++ includes and Armadillo.
void serialize(Archive &, const uint32_t)
Serialize the kernel (it has no members... do nothing).
LinearKernel()
This constructor does nothing; the linear kernel has no parameters to store.
static double Evaluate(const VecTypeA &a, const VecTypeB &b)
Simple evaluation of the dot product.