MCPcopy Create free account
hub / github.com/PatWie/CppNumericalSolvers / MinDifferentiability

Class MinDifferentiability

include/cppoptlib/function_expressions.h:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74// Helper to compute the minimum differentiability mode.
75template <typename F, typename G>
76struct MinDifferentiability {
77 static constexpr DifferentiabilityMode value =
78 (static_cast<int>(F::Differentiability) <
79 static_cast<int>(G::Differentiability)
80 ? F::Differentiability
81 : G::Differentiability);
82};
83// Meta-function to compute the minimum differentiability mode.
84template <DifferentiabilityMode A, DifferentiabilityMode B>
85struct MinDifferentiabilityMode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected