Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate const of ndarray from const of its data. #491

Merged
merged 7 commits into from
Jul 26, 2024
Merged

Commits on Apr 20, 2024

  1. Separate const of ndarray from const of its data.

    Add constexpr static bool is_ro to ndarray.
    hpkfft committed Apr 20, 2024
    Configuration menu
    Copy the full SHA
    f2dcec3 View commit details
    Browse the repository at this point in the history
  2. Improved handling of ndarray template parameters.

    A static assertion ensures that the ``order`` and ``framework``
    cannot be changed once set.  For example, a template argument to
    ``view()`` can only change one of these if it has not been set.
    The scalar element type and the ``shape`` can be set multiple times,
    and the rightmost one takes effect.  Thus, these can be changed by
    specifying template arguments to ``view()``.
    The read-only boolean, ``is_ro``, can be set either by specifying
    ``nb::ro`` or by specifying a const-qualified scalar element type.
    It is sticky.  Once set, it cannot be cleared.  So, a read-only
    view of writable data can be obtained, but not the reverse.
    hpkfft committed Apr 20, 2024
    Configuration menu
    Copy the full SHA
    450f22d View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Configuration menu
    Copy the full SHA
    21e37bb View commit details
    Browse the repository at this point in the history

Commits on May 4, 2024

  1. Configuration menu
    Copy the full SHA
    edd1154 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Configuration menu
    Copy the full SHA
    d408b01 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1597588 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2024

  1. Configuration menu
    Copy the full SHA
    d9356dc View commit details
    Browse the repository at this point in the history