| 74 | // Helper to compute the minimum differentiability mode. |
| 75 | template <typename F, typename G> |
| 76 | struct 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. |
| 84 | template <DifferentiabilityMode A, DifferentiabilityMode B> |
| 85 | struct MinDifferentiabilityMode { |
nothing calls this directly
no outgoing calls
no test coverage detected