[mlpack-git] master: Add default template arguments. (3485da0)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Jul 29 16:42:09 EDT 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/f8ceffae0613b350f4d6bdd46c6c8633a40b4897...6ee21879488fe98612a4619b17f8b51e8da5215b

>---------------------------------------------------------------

commit 3485da07a5324ef6aaefd26711923b6b2e8be5c4
Author: ryan <ryan at ratml.org>
Date:   Fri Jul 24 14:29:52 2015 -0400

    Add default template arguments.


>---------------------------------------------------------------

3485da07a5324ef6aaefd26711923b6b2e8be5c4
 src/mlpack/methods/fastmks/fastmks.hpp      | 4 ++--
 src/mlpack/methods/fastmks/fastmks_main.cpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mlpack/methods/fastmks/fastmks.hpp b/src/mlpack/methods/fastmks/fastmks.hpp
index 7b54835..c7363ca 100644
--- a/src/mlpack/methods/fastmks/fastmks.hpp
+++ b/src/mlpack/methods/fastmks/fastmks.hpp
@@ -48,9 +48,9 @@ namespace fastmks /** Fast max-kernel search. */ {
  */
 template<
     typename KernelType,
-    typename MatType,
+    typename MatType = arma::mat,
     template<typename MetricType, typename StatisticType, typename MatType>
-        class TreeType
+        class TreeType = tree::StandardCoverTree
 >
 class FastMKS
 {
diff --git a/src/mlpack/methods/fastmks/fastmks_main.cpp b/src/mlpack/methods/fastmks/fastmks_main.cpp
index dc1cdf8..947f88a 100644
--- a/src/mlpack/methods/fastmks/fastmks_main.cpp
+++ b/src/mlpack/methods/fastmks/fastmks_main.cpp
@@ -94,7 +94,7 @@ void RunFastMKS(const arma::mat& referenceData,
     TreeType tree(referenceData, metric, base);
 
     // Create FastMKS object.
-    FastMKS<KernelType, arma::mat, StandardCoverTree> fastmks(&tree, single);
+    FastMKS<KernelType> fastmks(&tree, single);
 
     // Now search with it.
     fastmks.Search(k, indices, kernels);



More information about the mlpack-git mailing list