Skip to content

Commit e669c62

Browse files
authored
Update arrays.md
1 parent a84b9f6 commit e669c62

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

docs/user-guide/arrays.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ def automatic_vector(
6868
Build 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

7774
Then 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
161158
native routine. x2py validates explicit dimensions it can express but cannot
162159
infer 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
171169
a generated native rank dispatcher. Each assumed-rank argument dispatches at
172170
its own runtime rank. Rank-zero values and ranks above 15 are rejected.
173171

0 commit comments

Comments
 (0)