aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--measures.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/measures.cpp b/measures.cpp
index 8829ee8..1a6e4ec 100644
--- a/measures.cpp
+++ b/measures.cpp
@@ -29,7 +29,7 @@ arma::vec mp::klDivergence(const arma::mat &P, const arma::mat &Q)
return diver;
}
-void mp::klDivergence(const arma::mat &P, const arma::mat &Q, arma::vec diver)
+void mp::klDivergence(const arma::mat &P, const arma::mat &Q, arma::vec &diver)
{
assert(P.n_rows == P.n_cols);
assert(Q.n_rows == Q.n_cols);