fixed RBM

git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@283 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2016-05-30 23:53:18 +00:00
parent 7fada2a227
commit f25f5b0dab
1096 changed files with 14 additions and 426765 deletions
+8 -1
View File
@@ -34,6 +34,7 @@ public:
LayerArray(LayerArrayListener *pListener = nullptr)
: m_pListener(pListener)
{
m_data.resize(0, 0);
}
virtual ~LayerArray()
@@ -44,7 +45,13 @@ public:
void add(const RowVectorXd &pData, uint32_t size)
{
m_data << pData;
MatrixXd C(m_data.rows()+pData.rows(), pData.cols());
if (m_data.rows())
C << m_data, pData;
else
C << pData;
m_data = C;
if (m_pListener)
{
m_pListener->onChanged(*this);