| 1937 | } |
| 1938 | |
| 1939 | shared_ptr<CoefficientFunction> DiffJacobi (const CoefficientFunction * var, T_DJC & cache) const override |
| 1940 | { |
| 1941 | auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this()); |
| 1942 | if (cache.find(thisptr) != cache.end()) |
| 1943 | return cache[thisptr]; |
| 1944 | |
| 1945 | if (this == var) |
| 1946 | { |
| 1947 | if (this -> Dimensions().Size() == 0) |
| 1948 | return make_shared<ConstantCoefficientFunction>(1); |
| 1949 | return IdentityCF(this->Dimensions()); |
| 1950 | } |
| 1951 | auto res = scal * c1->DiffJacobi(var, cache); |
| 1952 | cache[thisptr] = res; |
| 1953 | return res; |
| 1954 | } |
| 1955 | }; |
| 1956 | |
| 1957 |
nothing calls this directly
no test coverage detected