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

Function MakePyTuple

ngstd/python_ngstd.hpp:281–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279
280template <typename T>
281py::tuple MakePyTuple (const BaseArrayObject<T> & ao)
282{
283 size_t s = ao.Size();
284 py::tuple tup(s);
285 for (size_t i = 0; i < s; i++)
286 tup[i] = ao[i];
287 return tup;
288}
289
290template <typename T>
291py::list MakePyList (const BaseArrayObject<T> & ao)

Callers 2

ExportNgcompMeshFunction · 0.85

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected