MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / set_dofs

Method set_dofs

tools/Wires/Parameters/ParameterList.h:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 }
34
35 void set_dofs(const VectorF& dofs) {
36 assert(size_t(dofs.size()) == m_params.size());
37 size_t count = 0;
38 for (auto param : m_params) {
39 param->set_value(dofs[count]);
40 count++;
41 }
42 }
43
44 public:
45 typedef std::list<PatternParameter::Ptr>::iterator iterator;

Callers

nothing calls this directly

Calls 2

set_valueMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected