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>
The simple linear kernel (dot product).
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.
void serialize(Archive &, const unsigned int)
Serialize the kernel (it has no members... do nothing).
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.