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

Method getSubAlpha

src/python/handler/py_HPA.cpp:78–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78py::UniqueObj HPAModelObject::getSubAlpha() const
79{
80 auto* inst = getInst<tomoto::IHPAModel>();
81 float* ptr;
82 auto ret = py::newEmptyArray<float>(ptr, inst->getK(), inst->getK2() + 1);
83 for (size_t i = 0; i < inst->getK(); ++i)
84 {
85 auto l = inst->getSubAlpha(i);
86 memcpy(ptr + i * (inst->getK2() + 1), l.data(), sizeof(float) * (inst->getK2() + 1));
87 }
88 return ret;
89}

Callers

nothing calls this directly

Calls 2

getKMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected