Changeset 4c93933 in tol
- Timestamp:
- Oct 27, 2008, 8:37:27 AM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- dacdfcd8
- Parents:
- 64f4b50
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_stdLinearBlock.tol
r64f4b50 r4c93933 112 112 //////////////////////////////////////////////////////////////////////////// 113 113 { 114 WriteLn("TRACE"+_MID+" factorize X("<<VRows(X)+"x"+VColumns(X)+")"); 114 115 If(And(design.is.constant,VRows(_.L)), 0, 115 116 { 116 117 Real sparse = VNonNullCells(X)/(VRows(X)*VColumns(X)); 117 118 Real numErr = Copy(NError); 118 119 VMatrix _.L := If(sparse<.20, 119 120 { … … 125 126 VMatrix XtX = Convert(XtX_,"Cholmod.R.Sparse"); 126 127 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) 127 134 }); 128 135 VMatrix If(_.R, _.Ls := Convert(_.L, "Cholmod.R.Sparse"));
Note: See TracChangeset
for help on using the changeset viewer.
