|
smooth
A C++ library for Lie theory
|
autodiff compatability header. More...
#include <algorithm>#include <utility>#include <autodiff/forward/dual.hpp>#include <autodiff/forward/dual/eigen.hpp>#include "smooth/detail/traits.hpp"#include "smooth/detail/utils.hpp"#include "smooth/detail/wrt_impl.hpp"#include "smooth/manifolds.hpp"
Go to the source code of this file.
Classes | |
| struct | detail::scalar_trait< autodiff::Dual< T, T > > |
| Specialize trait to make autodiff type a Manifold. More... | |
Functions | |
| template<std::size_t K = 1> requires (K >= 1 && K <= 2) | |
| auto | diff::dr_autodiff (auto &&f, auto &&x) |
| Automatic differentiation in tangent space using the autodiff library. | |
autodiff compatability header.
Definition in file autodiff.hpp.
| #define SMOOTH_DIFF_AUTODIFF |
Definition at line 19 of file autodiff.hpp.
| auto diff::dr_autodiff | ( | auto && | f, |
| auto && | x | ||
| ) |
Automatic differentiation in tangent space using the autodiff library.
| f | function to differentiate |
| x | reference tuple of function arguments |
std::pair containing value and right derivative: \((f(x), \mathrm{d}^r f_x)\) Definition at line 48 of file autodiff.hpp.