File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,10 +68,7 @@ def automatic_vector(
6868Build it:
6969
7070``` bash
71- python3 -m x2py arrays.f90 \
72- --wrap \
73- --out-dir build/arrays \
74- --json
71+ python3 -m x2py arrays.f90 --out-dir build/arrays
7572```
7673
7774Then assert in-place mutation, lower-bound handling, and an array result:
@@ -161,13 +158,14 @@ the actual allocation, and the caller must ensure it is large enough for the
161158native routine. x2py validates explicit dimensions it can express but cannot
162159infer an omitted final extent from an unrelated argument.
163160
164- Non-default lower bounds affect the extent calculation, not Python indexing.
165- The ` shift ` procedure in the complete example declares lower bound zero while
166- Python still indexes its NumPy array from zero.
161+ Non-default native lower bounds change how extents are computed internally,
162+ but they do not alter Python indexing. Even if a Fortran argument is declared
163+ with custom bounds like values(3: size +2),
164+ the wrapped NumPy array in Python remains strictly zero-indexed.
167165
168166## Assumed Rank
169167
170- Supported numeric assumed-rank dummies accept NumPy ranks 1 through 15 through
168+ Supported numeric assumed-rank arguments accept NumPy ranks 1 through 15 through
171169a generated native rank dispatcher. Each assumed-rank argument dispatches at
172170its own runtime rank. Rank-zero values and ranks above 15 are rejected.
173171
You can’t perform that action at this time.
0 commit comments