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

Method IsConstant

ngstd/evalfunc.cpp:450–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448
449
450 bool EvalFunction :: IsConstant () const
451 {
452 if (res_type.iscomplex) return false;
453 if (res_type.vecdim > 1) return false;
454
455 for (int i = 0; i < program.Size(); i++)
456 {
457 EVAL_TOKEN op = program[i].op;
458 if (op == VARIABLE || op == GLOBVAR)
459 return false;
460 }
461 return true;
462 }
463
464 double EvalFunction :: EvalConstant () const
465 {

Callers

nothing calls this directly

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected