summaryrefslogtreecommitdiff
path: root/utils/synutils/maxent-3.0/lbfgs.h
diff options
context:
space:
mode:
authorWu, Ke <wuke@cs.umd.edu>2014-10-07 17:12:32 -0400
committerWu, Ke <wuke@cs.umd.edu>2014-10-07 17:12:32 -0400
commitcc9bfaeafad972cfe40e6cb804f60adba0c17be1 (patch)
tree87589f120385e2ded4337e4d3683431fe4ced5a2 /utils/synutils/maxent-3.0/lbfgs.h
parentb559c5db28f86b506fbfe152fde027d2fa408111 (diff)
Import synutils
Diffstat (limited to 'utils/synutils/maxent-3.0/lbfgs.h')
-rw-r--r--utils/synutils/maxent-3.0/lbfgs.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/synutils/maxent-3.0/lbfgs.h b/utils/synutils/maxent-3.0/lbfgs.h
new file mode 100644
index 00000000..113919a3
--- /dev/null
+++ b/utils/synutils/maxent-3.0/lbfgs.h
@@ -0,0 +1,21 @@
+#ifndef _LBFGS_H_
+#define _LBFGS_H_
+
+//template<class FuncGrad>
+//std::vector<double>
+//perform_LBFGS(FuncGrad func_grad, const std::vector<double> & x0);
+
+std::vector<double>
+perform_LBFGS(double (*func_grad)(const std::vector<double> &, std::vector<double> &),
+ const std::vector<double> & x0);
+
+
+std::vector<double>
+perform_OWLQN(double (*func_grad)(const std::vector<double> &, std::vector<double> &),
+ const std::vector<double> & x0,
+ const double C);
+
+//const int LBFGS_M = 7;
+const int LBFGS_M = 10;
+
+#endif