15 #ifndef __MLPACK_METHODS_FASTMKS_IP_METRIC_HPP 16 #define __MLPACK_METHODS_FASTMKS_IP_METRIC_HPP 33 template<
typename KernelType>
55 template<
typename VecTypeA,
typename VecTypeB>
56 double Evaluate(
const VecTypeA& a,
const VecTypeB& b);
64 template<
typename Archive>
65 void Serialize(Archive& ar,
const unsigned int version);
78 #include "ip_metric_impl.hpp" IPMetric()
Create the IPMetric without an instantiated kernel.
Linear algebra utility functions, generally performed on matrices or vectors.
const KernelType & Kernel() const
Get the kernel.
bool kernelOwner
If true, we are responsible for deleting the kernel.
KernelType * kernel
The kernel we are using.
The inner product metric, IPMetric, takes a given Mercer kernel (KernelType), and when Evaluate() is ...
double Evaluate(const VecTypeA &a, const VecTypeB &b)
Evaluate the metric.
~IPMetric()
Destroy the IPMetric object.
KernelType & Kernel()
Modify the kernel.
void Serialize(Archive &ar, const unsigned int version)
Serialize the metric.