Skip to content

Conversation

@jturner314
Copy link
Member

This adds support for more index types in the s![] macro. (This was discussed briefly in #369.)

The only thing I don't like about this PR is that it uses as to convert the step argument (of arbitrary type) to isize in the s![] macro. It would be possible to add a conversion trait to handle this, but the as approach is much simpler.

@jturner314 jturner314 force-pushed the more-slice-types branch 2 times, most recently from 240515e to 14ff223 Compare November 21, 2017 15:59
This commit also removes use of the `Ixs` type alias in the `slice`
module.
@bluss bluss merged commit 0ece678 into rust-ndarray:master Nov 28, 2017
@bluss
Copy link
Member

bluss commented Nov 28, 2017

Thanks a lot!

@jturner314 jturner314 deleted the more-slice-types branch November 28, 2017 21:42
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