MCPcopy Create free account
hub / github.com/bgrimstad/splinter / TestFunction

Method TestFunction

test/testfunction.cpp:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15{
16
17TestFunction::TestFunction(std::function<double (const std::vector<double> &)> f,
18 size_t numVariables,
19 std::string functionString)
20 : Function(numVariables),
21 functionString(functionString),
22 constDegree(false),
23 powers(DenseMatrix::Zero(0, 0)),
24 f(f)
25{
26}
27
28TestFunction::TestFunction(std::function<double (const std::vector<double> &)> f, size_t numVariables,
29 std::string functionString, DenseMatrix powers)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected