| 178 | static RegisterClassForArchive<cl_BinaryOpCF<GenericBSpline2D>, CoefficientFunction> regbspline2d; |
| 179 | |
| 180 | template <> void |
| 181 | cl_UnaryOpCF<GenericBSpline>::GenerateCode(Code &code, FlatArray<int> inputs, int index) const |
| 182 | { |
| 183 | // bspline.hpp is not automatically included. so we should include it: |
| 184 | code.top+= "#include <bspline.hpp>\n"; |
| 185 | |
| 186 | stringstream s; |
| 187 | s << "reinterpret_cast<BSpline*>(" << code.AddPointer(lam.sp.get()) << ")"; |
| 188 | code.body += Var(index,0,1).Assign(s.str()); |
| 189 | |
| 190 | Var(index).Assign( Var(inputs[0],0,c1->Dimensions()).Func(Var(index,0,1).S()+"->operator()")); |
| 191 | } |
| 192 | |
| 193 | template <> shared_ptr<CoefficientFunction> |
| 194 | cl_UnaryOpCF<GenericBSpline>::Diff(const CoefficientFunction * var, |
nothing calls this directly
no test coverage detected