Changeset 0bdc6a7 in tol
- Timestamp:
- Dec 2, 2008, 11:05:28 AM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 8c8cb65
- Parents:
- 3e1e359
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/stat/models/bayesian/bysMcmc/_build.tol
r3e1e359 r0bdc6a7 119 119 Real m_ = Case( 120 120 resume_>0, Min(m,resume_), 121 resume_<0, Max(0,m+resume_) );121 resume_<0, Max(0,m+resume_) ); 122 122 If(m_==0, 123 123 { … … 128 128 { 129 129 Real WriteLn(_MID+"resuming "<<m_+" old simulations"); 130 Real If(m_==m,0, 130 Matrix resumed = If(m_==m, 131 { 132 MatReadFile(_.path) 133 }, 131 134 { 132 135 Real WriteLn(_MID+"Removing last "<<Real(m-m_)+" old simulations"); 133 Matrix resumed = Sub(old.mcmc,1,1,m_,_.n);134 Matrix MatWriteFile(_.path, resumed);135 1136 Matrix aux = MatReadRows(_.path,1,m_,1); 137 Matrix MatWriteFile(_.path, aux); 138 aux 136 139 }); 137 Matrix lastRow = Sub( old.mcmc,m_,1,1,_.n);140 Matrix lastRow = Sub(resumed,m_,1,1,_.n); 138 141 //WriteLn("TRACE "+_MID+"lastRow="<<lastRow); 139 142 Real _.sampler::setStore(lastRow);
Note: See TracChangeset
for help on using the changeset viewer.
