Skip to content

Instantly share code, notes, and snippets.

@MikeZLin
Created March 2, 2019 19:15
Show Gist options
  • Select an option

  • Save MikeZLin/30db3094bb9b236db8a957cd97c80795 to your computer and use it in GitHub Desktop.

Select an option

Save MikeZLin/30db3094bb9b236db8a957cd97c80795 to your computer and use it in GitHub Desktop.
patch LDA for CPP11 Compile
diff --git a/include/ldaplusplus/events/Events.hpp b/include/ldaplusplus/events/Events.hpp
index bcaa96b..7126964 100644
--- a/include/ldaplusplus/events/Events.hpp
+++ b/include/ldaplusplus/events/Events.hpp
@@ -7,7 +7,7 @@
#include <mutex>
#include <thread>
#include <unordered_set>
-
+#include <functional>
namespace ldaplusplus {
namespace events {
diff --git a/include/ldaplusplus/optimization/SecondOrderLogisticRegressionApproximation.hpp b/include/ldaplusplus/optimization/SecondOrderLogisticRegressionApproximation.hpp
index 97a8958..1d5547a 100644
--- a/include/ldaplusplus/optimization/SecondOrderLogisticRegressionApproximation.hpp
+++ b/include/ldaplusplus/optimization/SecondOrderLogisticRegressionApproximation.hpp
@@ -2,7 +2,7 @@
#define _LDAPLUSPLUS_OPTIMIZATION_SECOND_ORDER_LOGISTIC_REGRESSION_APPROXIMATION_HPP_
#include <cmath>
-
+#include <vector>
#include <Eigen/Core>
namespace ldaplusplus {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment