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

Class SolveInPlaceWrapper

include/simple/math/qr.hpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 {
16 template<typename _SolverType>
17 struct SolveInPlaceWrapper : _SolverType
18 {
19 typedef _SolverType SolverType;
20
21 template<typename MatrixType>
22 void solveInPlace(const Eigen::MatrixBase<MatrixType> & mat) const
23 {
24 typename PINOCCHIO_EIGEN_PLAIN_TYPE(MatrixType) res(mat);
25 res = this->solve(mat);
26 mat.const_cast_derived() = res;
27 }
28
29 }; // struct SolveInPlaceWrapper
30
31 template<typename _MatrixType>
32 struct SolveInPlaceWrapper<Eigen::HouseholderQR<_MatrixType>> : Eigen::HouseholderQR<_MatrixType>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected