Skip to content

Commit ee4c0e9

Browse files
authored
Merge pull request #8 from OpenHCSDev/fix/native-image-geometry
Keep geometry and mask allocation on the native array device
2 parents 1e53d03 + b8a2eab commit ee4c0e9

9 files changed

Lines changed: 503 additions & 335 deletions

File tree

‎README.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,17 @@ pip install "arraybridge[cupy]"
7171
```
7272

7373
Documentation: <https://arraybridge.readthedocs.io>
74+
75+
### Native array geometry
76+
77+
`MemoryType.reshape(array, shape)` and `MemoryType.broadcast_to(array, shape)`
78+
operate in the array's framework and device. `MemoryType.ones_like(reference,
79+
shape=..., dtype=...)` allocates on the reference's device; omitting `shape`
80+
retains its shape. Reshape and broadcast preserve views where the backend can
81+
represent them. Broadcasting is not a promise of a writable, independent buffer.
82+
83+
These operations never silently project pixels to NumPy. Pyclesperanto cannot
84+
provide native changed-shape reshape or broadcasting, so those requests raise
85+
`NotImplementedError`. Its native ones allocation supports one to three
86+
dimensions and its supported integer/float32 dtypes; boolean allocation is
87+
explicitly unsupported. Existing conversion and disk boundaries remain separate.

‎docs/source/index.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ applications.
2020
examples/index
2121
contributing
2222
ci-cd
23+
release_035_validation
24+
release_036_validation
2325

2426
Boundary rule
2527
-------------

‎docs/source/release_035_validation.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ArrayBridge 0.3.5 release preparation
2-
===================================
2+
=====================================
33

44
Parent integration owner; base ea3f2a4cc91c4810d12343f58f85c1195e1a41e6.
55
The reviewed callable-native dtype default and durable decorator-context

‎docs/source/release_036_validation.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ArrayBridge typed thread-local release correction
2-
================================================
2+
=================================================
33

44
Parent integration owner. Actual failed original 0.3.5 publisher:
55
https://github.com/OpenHCSDev/ArrayBridge/actions/runs/36946585391.

‎src/arraybridge/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
NumPy/numcodecs import cost.
1111
"""
1212

13-
__version__ = "0.3.6"
13+
__version__ = "0.3.7"
1414

1515
_LAZY_EXPORTS: dict[str, str] = {
1616
"MemoryType": ".types",

0 commit comments

Comments
 (0)