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

Function UdUfactor

bayes/src/UdU.cpp:458–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456
457
458RowMatrix::value_type UdUfactor (RowMatrix& UD, const SymMatrix& M)
459/* Modified upper triangular Cholesky factor of a
460 * Positive definite or semi-definite Matrix M
461 * Wraps UdUfactor for non in place factorisation
462 * Output:
463 * UD the UdU' factorisation of M with strict lower triangle zero
464 * Return:
465 * see in-place UdUfactor
466 */
467{
468 noalias(UD) = M;
469 RowMatrix::value_type rcond = UdUfactor (UD, M.size1());
470
471 Lzero (UD); // Zero lower triangle ignored by UdUfactor
472 return rcond;
473}
474
475
476LTriMatrix::value_type LdLfactor (LTriMatrix& LD, const SymMatrix& M)

Callers 6

isPSDFunction · 0.70
initMethod · 0.70
observeMethod · 0.70
UdUinversePDFunction · 0.70
initMethod · 0.70
roughen_correlatedMethod · 0.70

Calls 1

LzeroFunction · 0.85

Tested by

no test coverage detected