- refactored

- constify
This commit is contained in:
2024-01-22 12:26:03 +01:00
parent d99cf5ee4c
commit 938368f1fa
14 changed files with 102 additions and 99 deletions
+2 -2
View File
@@ -104,7 +104,7 @@ Json::Value Rbm::toJson() const
return rbm;
}
void Rbm::gibbs_vh(arma::mat &v_probs, arma::mat &h_probs)
void Rbm::gibbs_vh(arma::mat &v_probs, arma::mat &h_probs) const
{
for (int i=0; i < m_params.numGibbs; i++)
{
@@ -116,7 +116,7 @@ void Rbm::gibbs_vh(arma::mat &v_probs, arma::mat &h_probs)
}
}
void Rbm::gibbs_hv(arma::mat &h_probs, arma::mat &v_probs)
void Rbm::gibbs_hv(arma::mat &h_probs, arma::mat &v_probs) const
{
for (int i=0; i < m_params.numGibbs; i++)
{