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

Better reshaping, part 1: .to_shape() #982

Merged
merged 9 commits into from
May 12, 2021
Merged

Better reshaping, part 1: .to_shape() #982

merged 9 commits into from
May 12, 2021

Commits on May 10, 2021

  1. order: Add enum Order

    bluss committed May 10, 2021
    Configuration menu
    Copy the full SHA
    31c71da View commit details
    Browse the repository at this point in the history
  2. shape: Add trait ShapeArg

    bluss committed May 10, 2021
    Configuration menu
    Copy the full SHA
    0d094bf View commit details
    Browse the repository at this point in the history
  3. shape: Add method .to_shape()

    bluss committed May 10, 2021
    Configuration menu
    Copy the full SHA
    3794952 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8032aec View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a26bf94 View commit details
    Browse the repository at this point in the history
  6. shape: Add trait Sequence

    To generalize over Forward/Reverse indexing of dimensions, add simple
    traits Sequence/Mut that allow indexing forwards and reversed references
    of dimension values. In a future change, they will support strides
    (with isize values) too.
    bluss committed May 10, 2021
    Configuration menu
    Copy the full SHA
    b157cc6 View commit details
    Browse the repository at this point in the history
  7. shape: Add function for reshape while preserving memory layout

    This function can compute the strides needed and if it's possible to
    reshape an array with given strides into a different shape. This happens
    using a given Order::{C, F}.
    bluss committed May 10, 2021
    Configuration menu
    Copy the full SHA
    2d42e5f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c9af569 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4467cd8 View commit details
    Browse the repository at this point in the history