Vladimír Vondruš
|
2eebb45557
|
python: don't keep a reference to owner for empty array views.
We don't need to reference anything from it anyway.
|
7 years ago |
Vladimír Vondruš
|
f3c0454c72
|
python: ensure memory owners are compared with `is`.
Otherwise it gives false positives (as was the case with one
comparison).
|
7 years ago |
Vladimír Vondruš
|
c40627c96c
|
python: better name [Strided]ArrayView memory owner property.
Mirroring Python's obj is not good, as the name is absolutely not
describing what it is.
|
7 years ago |
Vladimír Vondruš
|
4cbda8081b
|
corrade/containers: finally give up on testing ArrayView dimensions.
Numpy's array sometimes has 0 dimensions even though everything else is
okay.
|
7 years ago |
Vladimír Vondruš
|
a18c438352
|
python: so we need MutableStridedArrayView4D as well.
In order to access pixel data in 3D images, of course.
|
7 years ago |
Vladimír Vondruš
|
f9a2146142
|
python/corrade: remove TODOs that are impossible.
|
7 years ago |
Vladimír Vondruš
|
ce3d2564fd
|
python/corrade: make our own buffer protocol for array views.
THe one from pybind11 is severely limited and allocation-happy. Lots of
tech debt and TODOs resolved now, yay.
|
7 years ago |
Vladimír Vondruš
|
2ae83a0c26
|
python: make ArrayView properly convertible from Python array.
Also fix element sizes that aren't 1.
|
7 years ago |
Vladimír Vondruš
|
d34366ac46
|
python: expose ArrayView and StridedArrayView.
Wow. This took a while and still is far from ideal.
|
7 years ago |