15 #ifndef __MLPACK_METHODS_FASTMKS_IP_METRIC_HPP
16 #define __MLPACK_METHODS_FASTMKS_IP_METRIC_HPP
21 template<
typename KernelType>
37 template<
typename Vec1Type,
typename Vec2Type>
38 double Evaluate(
const Vec1Type& a,
const Vec2Type& b);
59 #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.
double Evaluate(const Vec1Type &a, const Vec2Type &b)
Evaluate the metric.
KernelType & kernel
The reference to the kernel that is being used.
std::string ToString() const
Returns a string representation of this object.
~IPMetric()
Destroy the IPMetric object.
KernelType & Kernel()
Modify the kernel.
KernelType * localKernel
The locally stored kernel, if it is necessary.