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

Method getSubAlpha

src/python/handler/py_PA.cpp:177–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177py::UniqueObj PAModelObject::getSubAlpha() const
178{
179 auto* inst = getInst<tomoto::IPAModel>();
180 float* ptr;
181 auto ret = py::newEmptyArray<float>(ptr, inst->getK(), inst->getK2());
182 for (size_t i = 0; i < inst->getK(); ++i)
183 {
184 auto l = inst->getSubAlpha(i);
185 memcpy(ptr + i * inst->getK2(), l.data(), sizeof(float) * inst->getK2());
186 }
187 return ret;
188}
189
190py::UniqueObj DocumentObject::getZ2() const
191{

Callers

nothing calls this directly

Calls 2

getKMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected