makePyTuple from BaseArrayObject

This commit is contained in:
Joachim Schoeberl 2024-04-04 15:20:09 +02:00
parent 6e2eae70ad
commit a393a315d0

View File

@ -259,7 +259,8 @@ namespace ngcore
} }
template <typename T> template <typename T>
py::object makePyTuple (FlatArray<T> ar) // py::object makePyTuple (FlatArray<T> ar)
py::object makePyTuple (const BaseArrayObject<T> & ar)
{ {
py::tuple res(ar.Size()); py::tuple res(ar.Size());
for (auto i : Range(ar)) for (auto i : Range(ar))