Changeset 95469a2 in tol


Ignore:
Timestamp:
Oct 26, 2009, 12:17:57 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
7145ae0
Parents:
ec0e896
Message:

Ensuring non empty matrix in InputVMatrix

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

File:
1 edited

Legend:

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

    rec0e896 r95469a2  
    369369  Text ResName = segment::Get.Name(0)+"::Noise";
    370370  VMatrix Y = segment::Get.OutputVMatrix(0);
    371   VMatrix X = segment::Get.InputVMatrix(0);
    372371  Real Ois.Store([[Y]],path.prefix+"Output.oza");
    373   Real Ois.Store([[X]],path.prefix+"Input.oza");
    374372  Real FPutText(fileHandler, "\nOutput = "
    375373  "  {$ VMatrix { Include(\"./Output.oza\")[1] } $};");
    376   Real FPutText(fileHandler, "\nInput = "
    377   "  {$ VMatrix { Include(\"./Input.oza\")[1] } $};");
    378   0
     374  VMatrix X = segment::Get.InputVMatrix(0);
     375  If(!VColumns(X),1,
     376  {
     377    Real Ois.Store([[X]],path.prefix+"Input.oza");
     378    Real FPutText(fileHandler, "\nInput = "
     379    "  {$ VMatrix { Include(\"./Input.oza\")[1] } $};");
     380    2
     381  })
    379382};
    380383
Note: See TracChangeset for help on using the changeset viewer.