13 #ifndef MLPACK_METHODS_FASTMKS_IP_METRIC_HPP 14 #define MLPACK_METHODS_FASTMKS_IP_METRIC_HPP 31 template<
typename KernelType>
53 template<
typename VecTypeA,
typename VecTypeB>
54 typename VecTypeA::elem_type
Evaluate(
const VecTypeA& a,
const VecTypeB& b);
62 template<
typename Archive>
63 void Serialize(Archive& ar,
const unsigned int version);
76 #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 ...
~IPMetric()
Destroy the IPMetric object.
KernelType & Kernel()
Modify the kernel.
VecTypeA::elem_type Evaluate(const VecTypeA &a, const VecTypeB &b)
Evaluate the metric.
void Serialize(Archive &ar, const unsigned int version)
Serialize the metric.