MCPcopy Create free account
hub / github.com/bab2min/tomotopy / getAlpha

Method getAlpha

src/python/handler/py_HPA.cpp:66–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66py::UniqueObj HPAModelObject::getAlpha() const
67{
68 auto* inst = getInst<tomoto::IHPAModel>();
69 float* ptr;
70 auto ret = py::newEmptyArray<float>(ptr, inst->getK() + 1);
71 for (size_t i = 0; i <= inst->getK(); ++i)
72 {
73 ptr[i] = inst->getAlpha(i);
74 }
75 return ret;
76}
77
78py::UniqueObj HPAModelObject::getSubAlpha() const
79{

Callers

nothing calls this directly

Calls 1

getKMethod · 0.45

Tested by

no test coverage detected