[mlpack] 112/324: Explicitly use arma::sign().

Barak A. Pearlmutter barak+git at cs.nuim.ie
Sun Aug 17 08:22:01 UTC 2014


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

bap pushed a commit to branch svn-trunk
in repository mlpack.

commit 2742d4f3fe9db0a167ff35c631e404989401282a
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Thu Jul 3 12:43:52 2014 +0000

    Explicitly use arma::sign().
    
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16750 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 src/mlpack/core/dists/laplace_distribution.hpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mlpack/core/dists/laplace_distribution.hpp b/src/mlpack/core/dists/laplace_distribution.hpp
index cee7dff..5757f8e 100644
--- a/src/mlpack/core/dists/laplace_distribution.hpp
+++ b/src/mlpack/core/dists/laplace_distribution.hpp
@@ -89,7 +89,8 @@ class LaplaceDistribution
     result.randu();
 
     // Convert from uniform distribution to Laplace distribution.
-    return mean - scale * sign(result) % arma::log(1 - 2.0 * (result - 0.5));
+    return mean - scale * arma::sign(result) % arma::log(1 - 2.0 * (result -
+        0.5));
   }
 
   /**

-- 
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