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

Function replace_ellipse

fem/tensorcoefficient.cpp:327–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325 }
326
327 string replace_ellipse(const string& signature_part, size_t pos, size_t nnew, const string& new_symbols)
328 {
329 stringstream sstr;
330 for (auto i : Range(pos))
331 sstr << signature_part[i];
332 for (auto i : Range(nnew))
333 sstr << new_symbols[i];
334
335 auto offset = pos + 3;
336 auto nremain = signature_part.size() - offset;
337 for (auto i : Range(nremain))
338 sstr << signature_part[i + offset];
339
340 return sstr.str();
341 }
342
343 pair<string,string> expand_ellipse(string signature_part, const shared_ptr<CoefficientFunction> cf,
344 const string& existing_symbols, string ellipse_symbols = "")

Callers 2

expand_ellipseFunction · 0.85
expand_ellipsesFunction · 0.85

Calls 1

RangeFunction · 0.50

Tested by

no test coverage detected