MCPcopy Create free account
hub / github.com/Simple-Robotics/proxsuite / to_eigen_perm

Function to_eigen_perm

test/src/sparse_factorization.cpp:41–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39// perm[0] : 1er elet du vecteur
40template<typename I>
41auto
42to_eigen_perm(proxsuite::linalg::veg::Slice<I> perm)
43 -> Eigen::PermutationMatrix<-1, -1, I>
44{
45 Eigen::PermutationMatrix<-1, -1, I> perm_eigen;
46 perm_eigen.indices().resize(perm.len());
47 std::memmove( //
48 perm_eigen.indices().data(),
49 perm.ptr(),
50 proxsuite::linalg::veg::usize(perm.len()) * sizeof(I));
51 // copie perm.ptr() vers perm_eigen ...
52 // proxsuite::linalg::veg::usize(perm.len()) * sizeof(I) :taille de la zone à
53 // copier
54 return perm_eigen;
55}
56
57template<typename T, typename I>
58auto

Callers 2

reconstruct_with_permFunction · 0.85
ldlt_with_permFunction · 0.85

Calls 3

memmoveFunction · 0.85
lenMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected