| 6260 | } |
| 6261 | |
| 6262 | shared_ptr<CoefficientFunction> DiffJacobi (const CoefficientFunction * var, T_DJC & cache) const override |
| 6263 | { |
| 6264 | auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this()); |
| 6265 | if (cache.find(thisptr) != cache.end()) |
| 6266 | return cache[thisptr]; |
| 6267 | |
| 6268 | if (this == var) |
| 6269 | return IdentityCF(cf_then->Dimensions()); |
| 6270 | |
| 6271 | auto res = IfPos (cf_if, cf_then->DiffJacobi (var, cache), cf_else->DiffJacobi (var, cache)); |
| 6272 | cache[thisptr] = res; |
| 6273 | return res; |
| 6274 | } |
| 6275 | }; |
| 6276 | |
| 6277 | extern |
nothing calls this directly
no test coverage detected