mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-13 17:48:34 +05:00
makePyTuple from BaseArrayObject
This commit is contained in:
parent
6e2eae70ad
commit
a393a315d0
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user