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

Method find

fem/code_generation.cpp:240–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 struct CCode {
239 static std::vector<string> expressions;
240 static int find( std::vector<string> &v, string val ){
241 int i = 0;
242 for(auto &s : v) {
243 if(s==val)
244 return i;
245 i++;
246 }
247 return -1;
248 }
249
250 static string strip(string s) {
251 int n = s.size();

Callers 15

TransformMethod · 0.80
DiffJacobiMethod · 0.80
DiffJacobiMethod · 0.80
DiffJacobiMethod · 0.80
DiffJacobiMethod · 0.80
DiffJacobiMethod · 0.80
DiffJacobiMethod · 0.80
DiffJacobiMethod · 0.80
DiffJacobiMethod · 0.80
DiffJacobiMethod · 0.80
DiffJacobiMethod · 0.80
DiffJacobiMethod · 0.80

Calls

no outgoing calls

Tested by 1

op_countsFunction · 0.64