MCPcopy Create free account
hub / github.com/PX4/eigen / eiToGmm

Function eiToGmm

bench/BenchSparseUtil.h:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72typedef gmm::csc_matrix<Scalar> GmmSparse;
73typedef gmm::col_matrix< gmm::wsvector<Scalar> > GmmDynSparse;
74void eiToGmm(const EigenSparseMatrix& src, GmmSparse& dst)
75{
76 GmmDynSparse tmp(src.rows(), src.cols());
77 for (int j=0; j<src.cols(); ++j)
78 for (EigenSparseMatrix::InnerIterator it(src.derived(), j); it; ++it)
79 tmp(it.index(),j) = it.value();
80 gmm::copy(tmp, dst);
81}
82#endif
83
84#ifndef NOMTL

Callers

nothing calls this directly

Calls 5

copyFunction · 0.85
rowsMethod · 0.45
colsMethod · 0.45
indexMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected