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

Method check

ngstd/python_ngstd.hpp:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 extract( py::handle aobj ) : obj(aobj) {}
69
70 bool check() {
71 try
72 {
73 obj.cast<T>();
74 }
75 catch(const std::runtime_error &e)
76 {
77 return false;
78 }
79 return true;
80 }
81
82 T operator()() { return obj.cast<T>(); }
83};

Callers 8

MakeCoefficientFunction · 0.45
ExportStdMathFunctionFunction · 0.45
ExportNgcompMeshFunction · 0.45
ExportPmlFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected