smooth
A C++ library for Lie theory
Loading...
Searching...
No Matches
Classes | Macros | Functions
autodiff.hpp File Reference

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"
Include dependency graph for autodiff.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.
 

Detailed Description

autodiff compatability header.

Definition in file autodiff.hpp.

Macro Definition Documentation

◆ SMOOTH_DIFF_AUTODIFF

#define SMOOTH_DIFF_AUTODIFF

Definition at line 19 of file autodiff.hpp.

Function Documentation

◆ dr_autodiff()

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.

Parameters
ffunction to differentiate
xreference tuple of function arguments
Returns
std::pair containing value and right derivative: \((f(x), \mathrm{d}^r f_x)\)

Definition at line 48 of file autodiff.hpp.