Changeset 4c93933 in tol


Ignore:
Timestamp:
Oct 27, 2008, 8:37:27 AM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
dacdfcd8
Parents:
64f4b50
Message:

Storing failed factorization matrix

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

File:
1 edited

Legend:

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

    r64f4b50 r4c93933  
    112112  ////////////////////////////////////////////////////////////////////////////
    113113  {
     114    WriteLn("TRACE"+_MID+" factorize X("<<VRows(X)+"x"+VColumns(X)+")");
    114115    If(And(design.is.constant,VRows(_.L)), 0,
    115116    {
    116117      Real sparse = VNonNullCells(X)/(VRows(X)*VColumns(X));
    117 
     118      Real numErr = Copy(NError);
    118119      VMatrix _.L := If(sparse<.20,
    119120      {
    … …  
    125126        VMatrix XtX  = Convert(XtX_,"Cholmod.R.Sparse");
    126127        CholeskiFactor(XtX,"X")
     128      });
     129      Real If(Copy(NError)>numErr,
     130      {
     131        Text path = TolAppDataPath+"tmp/"+ToName(_MID)+".oza";
     132        WriteLn("Failed factorization matrix will be stored into "+path);
     133        Ois.Store([[X]],path)
    127134      });
    128135      VMatrix If(_.R, _.Ls := Convert(_.L, "Cholmod.R.Sparse"));
Note: See TracChangeset for help on using the changeset viewer.