Changeset 23412b6 in tol


Ignore:
Timestamp:
Jul 3, 2012, 9:30:37 PM (14 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
0d63276
Parents:
50804e0
Message:

Avoiding Cholesky warnings

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/bmath/bstat/arma.cpp

    r50804e0 r23412b6  
    587587    As.DMat2sparse((const BMatrix<double>&)A);
    588588    ms.DMat2sparse((const BMatrix<double>&)m);
    589     BVMat::CholeskiFactor(As,Ls,"XtX",true,false,true);
    590     BVMat::CholeskiSolve(Ls,(ms.T()*As).T(),gps,"PtLLtP");
    591     gps.GetDMat((BMatrix<double>&)gp);
    592     test = A*gp-m;
    593     err  = test.FrobeniusNorm();
    594 
     589    BVMat::CholeskiFactor(As,Ls,"XtX",true,false,false);
     590    if(Ls.Code()==BVMat::ESC_undefined)
     591    {
     592      err  = BDat::Unknown();
     593    }
     594    else
     595    {
     596      BVMat::CholeskiSolve(Ls,(ms.T()*As).T(),gps,"PtLLtP");
     597      gps.GetDMat((BMatrix<double>&)gp);
     598      test = A*gp-m;
     599      err  = test.FrobeniusNorm();
     600    }
    595601    bool closeToNonStationary = false;
    596602    if(err.IsUnknown()  || (err>Sqrt((1+p)*DEpsilon())))
Note: See TracChangeset for help on using the changeset viewer.