From 562d0472aababa9a5fbc5b7518ea174745323e4f Mon Sep 17 00:00:00 2001 From: David Huggins Daines Date: Fri, 5 Apr 2019 18:29:30 -0400 Subject: [PATCH] add logmath functions for completeness if nothing else --- swig/logmath.i | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/swig/logmath.i b/swig/logmath.i index b212ae2f..1f58e237 100644 --- a/swig/logmath.i +++ b/swig/logmath.i @@ -48,4 +48,36 @@ double exp(int prob) { return logmath_exp($self, prob); } + + int log(double prob) { + return logmath_log($self, prob); + } + + int add(int logb_p, int logb_q) { + return logmath_add($self, logb_p, logb_q); + } + + int ln_to_log(double log_p) { + return logmath_ln_to_log($self, log_p); + } + + double log_to_ln(int logb_p) { + return logmath_log_to_ln($self, logb_p); + } + + int log10_to_log(double log_p) { + return logmath_log10_to_log($self, log_p); + } + + double log_to_log10(int logb_p) { + return logmath_log_to_log10($self, logb_p); + } + + float log10_to_log_float(double log_p) { + return logmath_log10_to_log_float($self, log_p); + } + + double log_float_to_log10(float log_p) { + return logmath_log_float_to_log10($self, log_p); + } }