Skip to content

Conversation

@cjdoris
Copy link
Collaborator

@cjdoris cjdoris commented Sep 18, 2025

Changes the parameters of PyArray from PyArray{T,N,M,L,R} to PyArray{T,N,F}:

  • F is a tuple of symbols, encoding various flags.
  • The old M parameter becomes the :mutable flag.
  • The old L parameter becomes the :linear flag.
  • Also adds a :contiguous flag and adds that for even faster access.
  • The old R parameter is now implied by T.

The last point means that we no longer allow python objects to be converted to arbitrary eltypes with pyconvert. We have an explicit mapping of T to R. For now, T must be a basic scalar type which equals R or T=Py.

@cjdoris cjdoris marked this pull request as ready for review October 23, 2025 20:04
@cjdoris cjdoris merged commit d5f8ace into v1 Oct 23, 2025
14 of 16 checks passed
@cjdoris cjdoris deleted the pyarray branch October 23, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants