- context drawComponents are always visible

git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@765 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-01-09 13:02:52 +00:00
parent 5427287838
commit 238a6d9258
3 changed files with 15 additions and 15 deletions
+4
View File
@@ -320,6 +320,10 @@ arma::mat Rbm::vc_to_v(const arma::mat &vc) const
arma::mat Rbm::vc_to_c(const arma::mat &vc) const
{
if (numContext() == 0)
{
return arma::mat(1,0);
}
return vc.submat(0, numVisible() - numContext(), 0, numVisible() - 1);
}