| 6836 | } |
| 6837 | |
| 6838 | virtual shared_ptr<CoefficientFunction> |
| 6839 | DiffJacobi (const CoefficientFunction * var, T_DJC & cache) const override |
| 6840 | { |
| 6841 | auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this()); |
| 6842 | if (cache.find(thisptr) != cache.end()) |
| 6843 | return cache[thisptr]; |
| 6844 | |
| 6845 | if (var == this) return Compile (IdentityCF(Dimensions()), _real_compile, _maxderiv, _wait); |
| 6846 | auto diff_cf = cf->DiffJacobi (var, cache); |
| 6847 | // return Compile (diff_cf, false, 0, 0); |
| 6848 | auto res = Compile (diff_cf, _real_compile, _maxderiv, _wait, _keep_files); |
| 6849 | cache[thisptr] = res; |
| 6850 | return res; |
| 6851 | } |
| 6852 | |
| 6853 | |
| 6854 | Code GenerateProgram (int deriv, bool simd) const override |
nothing calls this directly
no test coverage detected