12 #ifndef MLPACK_METHODS_FASTMKS_FASTMKS_MODEL_HPP    13 #define MLPACK_METHODS_FASTMKS_FASTMKS_MODEL_HPP    75   template<
typename TKernelType>
    77                   arma::mat&& referenceData,
    79                   const bool singleMode,
   111               const arma::mat& querySet,
   113               arma::Mat<size_t>& indices,
   128               arma::Mat<size_t>& indices,
   134   template<
typename Archive>
   135   void serialize(Archive& ar, 
const uint32_t );
   157   template<
typename FastMKSType>
   160               const arma::mat& querySet,
   162               arma::Mat<size_t>& indices,
   170 #include "fastmks_model_impl.hpp" 
Linear algebra utility functions, generally performed on matrices or vectors. 
 
The core includes that mlpack expects; standard C++ includes and Armadillo. 
 
bool Naive() const
Get whether or not naive search is used. 
 
int KernelType() const
Get the kernel type. 
 
void serialize(Archive &ar, const uint32_t)
Serialize the model. 
 
~FastMKSModel()
Clean memory. 
 
void BuildModel(util::Timers &timers, arma::mat &&referenceData, TKernelType &kernel, const bool singleMode, const bool naive, const double base)
Build the model on the given reference set. 
 
A utility struct to contain all the possible FastMKS models, for use by the mlpack_fastmks program...
 
void Search(util::Timers &timers, const arma::mat &querySet, const size_t k, arma::Mat< size_t > &indices, arma::mat &kernels, const double base)
Search with a different query set. 
 
bool SingleMode() const
Get whether or not single-tree search is used. 
 
FastMKSModel(const int kernelType=LINEAR_KERNEL)
Create the FastMKSModel with the given kernel type. 
 
KernelTypes
A list of all the kernels we support. 
 
An implementation of fast exact max-kernel search. 
 
FastMKSModel & operator=(const FastMKSModel &other)
Copy assignment operator. 
 
int & KernelType()
Modify the kernel type.