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

Function diag

bayes/include/open_ptrack/bayes/uBLASmatrix.hpp:382–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380 */
381template <class Base>
382ublas::matrix_vector_range<FMMatrix<Base> >
383 diag(FMMatrix<Base>& M, std::size_t n)
384{ // Return a vector proxy to the first n diagonal elements of M
385 return ublas::matrix_vector_range<FMMatrix<Base> >(M, ublas::range(0,n), ublas::range(0,n));
386}
387
388template <class Base>
389const ublas::matrix_vector_range<const FMMatrix<Base> >

Callers 7

UdUrcondFunction · 0.85
UCrcondFunction · 0.85
UdUfactor_variant1Function · 0.85
UdUfactor_variant2Function · 0.85
LdLfactorFunction · 0.85
identityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected