MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / update

Method update

bayes/src/infRtFlt.cpp:94–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void Information_root_scheme::update ()
95/* Recompute x,X from r,R
96 * Precondition:
97 * r(k|k),R(k|k)
98 * Postcondition:
99 * r(k|k),R(k|k)
100 * x = inv(R)*r
101 * X = inv(R)*inv(R)'
102 */
103{
104 UTriMatrix RI (R); // Invert Cholesky factor
105 bool singular = UTinverse (RI);
106 if (singular)
107 error (Numeric_exception("R not PD"));
108
109 noalias(X) = prod_SPD(RI); // X = RI*RI'
110 noalias(x) = prod(RI,r);
111}
112
113void Information_root_info_scheme::update_yY ()
114/* Recompute y,Y from r,R

Callers

nothing calls this directly

Calls 4

UTinverseFunction · 0.85
errorFunction · 0.85
Numeric_exceptionClass · 0.85
prod_SPDFunction · 0.85

Tested by

no test coverage detected