Changeset 8642d7e in tol


Ignore:
Timestamp:
Dec 15, 2009, 5:37:35 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
dac8deb
Parents:
bc98cf7
Message:

Fixes #813

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1812 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/math/stat/models/bayesian/bysMcmc/_partialSampler.tol

    rbc98cf7 r8642d7e  
    194194        Set   fixedParamAll  = _.mcmcPartialHandler::_.fixedParam;
    195195        Set   fixedParamAux  = SelectIndexByName(blockParam, fixedParamAll);
    196         Real If(!Card(fixedParamAux),
     196        VMatrix _.fixedValues :=
     197          SubRow(_.mcmcPartialHandler::_.fixedValues, fixedParamAux);
     198        Real If(Card(fixedParamAux),
    197199        {
    198           Set _.fixedParam    := ExtractByIndex(fixedParamAll, fixedParamAux);
    199           Real SetIndexByName(_.fixedParam);
     200          Set _.fixedParam := ExtractByIndex(fixedParamAll, fixedParamAux);
     201          Set EvalSet(_.fixedParam, Text(Text prm){PutName(ToName(prm),prm)});
     202          Real If(Card(_.fixedParam), SetIndexByName(_.fixedParam));
    200203          Set fixedParamIdx := SelectIndexByName(_.fixedParam, blockParam);
    201204          Matrix _.fixedParamIdx := SetCol(fixedParamIdx);
    … …  
    210213        {
    211214          Set _.reloadParam    := ExtractByIndex(reloadParamAll, reloadParamAux);
    212           Real SetIndexByName(_.reloadParam);
     215          Set EvalSet(_.reloadParam, Text(Text prm){PutName(ToName(prm),prm)});
     216          Real If(Card(_.reloadParam), SetIndexByName(_.reloadParam));
    213217          Set reloadParamIdx := SelectIndexByName(_.reloadParam, blockParam);
    214218          Matrix _.reloadParamIdx := SetCol(reloadParamIdx);
Note: See TracChangeset for help on using the changeset viewer.