13 #ifndef MLPACK_METHODS_FASTMKS_IP_METRIC_HPP    14 #define MLPACK_METHODS_FASTMKS_IP_METRIC_HPP    31 template<
typename KernelType>
    59   template<
typename VecTypeA, 
typename VecTypeB>
    60   typename VecTypeA::elem_type 
Evaluate(
const VecTypeA& a, 
const VecTypeB& b);
    63   const KernelType& 
Kernel()
 const { 
return *kernel; }
    65   KernelType& 
Kernel() { 
return *kernel; }
    68   template<
typename Archive>
    69   void serialize(Archive& ar, 
const uint32_t version);
    82 #include "ip_metric_impl.hpp" void serialize(Archive &ar, const uint32_t version)
Serialize the metric. 
 
IPMetric & operator=(const IPMetric &other)
Assign this metric to be a copy of the given metric. 
 
VecTypeA::elem_type Evaluate(const VecTypeA &a, const VecTypeB &b)
Evaluate the metric. 
 
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. 
 
The inner product metric, IPMetric, takes a given Mercer kernel (KernelType), and when Evaluate() is ...
 
KernelType & Kernel()
Modify the kernel. 
 
~IPMetric()
Destroy the IPMetric object.