mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
pickle bitarrays
This commit is contained in:
parent
9af476c353
commit
45a4b2c913
@ -30,6 +30,7 @@ PYBIND11_MODULE(pyngcore, m) // NOLINT
|
|||||||
if (a[i]) ba->SetBit(i);
|
if (a[i]) ba->SetBit(i);
|
||||||
return ba;
|
return ba;
|
||||||
} ), py::arg("vec"))
|
} ), py::arg("vec"))
|
||||||
|
.def(NGSPickle<BitArray>())
|
||||||
.def("__str__", &ToString<BitArray>)
|
.def("__str__", &ToString<BitArray>)
|
||||||
.def("__len__", &BitArray::Size)
|
.def("__len__", &BitArray::Size)
|
||||||
.def("__getitem__", [] (BitArray & self, int i)
|
.def("__getitem__", [] (BitArray & self, int i)
|
||||||
|
Loading…
Reference in New Issue
Block a user