| 2049 | } |
| 2050 | |
| 2051 | shared_ptr<CoefficientFunction> DiffJacobi (const CoefficientFunction * var, T_DJC & cache) const override |
| 2052 | { |
| 2053 | auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this()); |
| 2054 | if (cache.find(thisptr) != cache.end()) |
| 2055 | return cache[thisptr]; |
| 2056 | |
| 2057 | if (this == var) |
| 2058 | { |
| 2059 | if (this -> Dimensions().Size() == 0) |
| 2060 | return make_shared<ConstantCoefficientFunction>(1); |
| 2061 | return IdentityCF(this->Dimensions()); |
| 2062 | } |
| 2063 | auto res = scal * c1->DiffJacobi(var, cache); |
| 2064 | cache[thisptr] = res; |
| 2065 | return res; |
| 2066 | } |
| 2067 | |
| 2068 | }; |
| 2069 |
nothing calls this directly
no test coverage detected