MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / Transform

Method Transform

fem/coefficient_matrix.cpp:704–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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+">";

Callers 2

TransformMethod · 0.45
TransformMethod · 0.45

Calls 1

shared_from_thisMethod · 0.45

Tested by

no test coverage detected