COPP C++ API
C++ interface for COPP trajectory optimization
Loading...
Searching...
No Matches
copp::Jet3 Struct Reference

Third-order forward-mode automatic-differentiation scalar. More...

#include <path.hpp>

Static Public Member Functions

static constexpr Jet3 constant (double value) noexcept
static constexpr Jet3 seed (double value) noexcept

Public Attributes

double v = 0.0
double d1 = 0.0
double d2 = 0.0
double d3 = 0.0

Detailed Description

Third-order forward-mode automatic-differentiation scalar.

v is the scalar value. d1, d2, and d3 are derivatives with respect to the path parameter s. Parametric path callbacks receive a seeded scalar (d1 = 1) and return or write one Jet3 per path dimension; COPP extracts all derivatives up to third order.

[](copp::Jet3 s) {
return std::vector<copp::Jet3>{s, copp::sin(s), copp::powi(s, 3)};
},
0.0,
1.0);
static Path from_parametric(PathParametric parametric, double s_min, double s_max)
Build a path from a scalar-parametric formula.
Jet3 sin(Jet3 x) noexcept
Definition path.hpp:156
Jet3 powi(Jet3 x, int n) noexcept
Definition path.hpp:229
Third-order forward-mode automatic-differentiation scalar.
Definition path.hpp:44

Definition at line 43 of file path.hpp.

Member Function Documentation

◆ constant()

constexpr Jet3 copp::Jet3::constant ( double value)
inlinestaticconstexprnoexcept

Definition at line 50 of file path.hpp.

◆ seed()

constexpr Jet3 copp::Jet3::seed ( double value)
inlinestaticconstexprnoexcept

Definition at line 55 of file path.hpp.

Member Data Documentation

◆ v

double copp::Jet3::v = 0.0

Definition at line 45 of file path.hpp.

◆ d1

double copp::Jet3::d1 = 0.0

Definition at line 46 of file path.hpp.

◆ d2

double copp::Jet3::d2 = 0.0

Definition at line 47 of file path.hpp.

◆ d3

double copp::Jet3::d3 = 0.0

Definition at line 48 of file path.hpp.


The documentation for this struct was generated from the following file: