[mlpack] 19/30: - DET templating ready and tests passing.

Barak A. Pearlmutter barak+git at pearlmutter.net
Mon Dec 26 10:15:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

commit 3a16a8840173a3a817a717a51900c9570131dcc6
Author: Ryan Curtin <ryan at ratml.org>
Date:   Thu Dec 22 10:49:55 2016 -0500

    - DET templating ready and tests passing.
---
 src/mlpack/core/arma_extend/Mat_extra_bones.hpp   | 9 +++++++++
 src/mlpack/core/arma_extend/SpMat_extra_bones.hpp | 8 ++++++++
 2 files changed, 17 insertions(+)

diff --git a/src/mlpack/core/arma_extend/Mat_extra_bones.hpp b/src/mlpack/core/arma_extend/Mat_extra_bones.hpp
index e09f5f5..f4f25d6 100644
--- a/src/mlpack/core/arma_extend/Mat_extra_bones.hpp
+++ b/src/mlpack/core/arma_extend/Mat_extra_bones.hpp
@@ -12,6 +12,15 @@
 template<typename Archive>
 void serialize(Archive& ar, const unsigned int version);
 
+/**
+ * These will help us refer the proper vector / column types, only with
+ * specifying the matrix type we want to use.
+ */
+
+typedef Col<elem_type>   vec_type;
+typedef Col<elem_type>   col_type;
+typedef Row<elem_type>   row_type;
+
 /*
  * Add row_col_iterator and row_col_const_iterator to arma::Mat.
  */
diff --git a/src/mlpack/core/arma_extend/SpMat_extra_bones.hpp b/src/mlpack/core/arma_extend/SpMat_extra_bones.hpp
index d3c18de..a5d274c 100644
--- a/src/mlpack/core/arma_extend/SpMat_extra_bones.hpp
+++ b/src/mlpack/core/arma_extend/SpMat_extra_bones.hpp
@@ -16,6 +16,14 @@
 template<typename Archive>
 void serialize(Archive& ar, const unsigned int version);
 
+/**
+ * These will help us refer the proper vector / column types, only with
+ * specifying the matrix type we want to use.
+ */
+typedef SpCol<elem_type>   vec_type;
+typedef SpCol<elem_type>   col_type;
+typedef SpRow<elem_type>   row_type;
+
 /*
  * Extra functions for SpMat<eT>
  * Adding definition of row_col_iterator to generalize with Mat<eT>::row_col_iterator

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list