mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50: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);
|
||||
return ba;
|
||||
} ), py::arg("vec"))
|
||||
.def(NGSPickle<BitArray>())
|
||||
.def("__str__", &ToString<BitArray>)
|
||||
.def("__len__", &BitArray::Size)
|
||||
.def("__getitem__", [] (BitArray & self, int i)
|
||||
|
Loading…
Reference in New Issue
Block a user