| 702 | } |
| 703 | |
| 704 | shared_ptr<CoefficientFunction> |
| 705 | Transform(CoefficientFunction::T_Transform& transformation) const override |
| 706 | { |
| 707 | auto thisptr = const_pointer_cast<CoefficientFunction>(this->shared_from_this()); |
| 708 | if(transformation.cache.count(thisptr)) |
| 709 | return transformation.cache[thisptr]; |
| 710 | if(transformation.replace.count(thisptr)) |
| 711 | return transformation.replace[thisptr]; |
| 712 | auto newcf = make_shared<CofactorCoefficientFunction<D>>(c1->Transform(transformation)); |
| 713 | transformation.cache[thisptr] = newcf; |
| 714 | return newcf; |
| 715 | } |
| 716 | |
| 717 | virtual void GenerateCode(Code &code, FlatArray<int> inputs, int index) const override { |
| 718 | // auto mat_type = "Mat<"+ToString(D)+","+ToString(D)+","+code.res_type+">"; |
no test coverage detected