Changeset 23412b6 in tol
- Timestamp:
- Jul 3, 2012, 9:30:37 PM (14 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 0d63276
- Parents:
- 50804e0
- File:
-
- 1 edited
-
tol/bmath/bstat/arma.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/bmath/bstat/arma.cpp
r50804e0 r23412b6 587 587 As.DMat2sparse((const BMatrix<double>&)A); 588 588 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 } 595 601 bool closeToNonStationary = false; 596 602 if(err.IsUnknown() || (err>Sqrt((1+p)*DEpsilon())))
Note: See TracChangeset
for help on using the changeset viewer.
