MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / MakePyList

Function MakePyList

ngstd/python_ngstd.hpp:291–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289
290template <typename T>
291py::list MakePyList (const BaseArrayObject<T> & ao)
292{
293 size_t s = ao.Size();
294 py::list l;
295 for (size_t i = 0; i < s; i++)
296 l.append (ao[i]);
297 return l;
298}
299
300
301

Callers 1

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected