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

Method getConstDegreeInt

test/testfunction.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47std::vector<unsigned int> TestFunction::getConstDegreeInt() const
48{
49 auto intDegrees = std::vector<unsigned int>(powers.rows(), 0);
50
51 auto maxCoeffs = powers.rowwise().maxCoeff();
52 for (size_t i = 0; i < powers.rows(); ++i)
53 {
54 intDegrees.at(i) = (unsigned int) std::ceil(maxCoeffs(i));
55 }
56
57 return intDegrees;
58}
59
60double TestFunction::getMaxDegree() const
61{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected