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

Generalize numel() that counts the volume of a slice #34

Open
jfalcou opened this issue May 17, 2022 · 4 comments
Open

Generalize numel() that counts the volume of a slice #34

jfalcou opened this issue May 17, 2022 · 4 comments

Comments

@jfalcou
Copy link
Owner

jfalcou commented May 17, 2022

No description provided.

@jfalcou jfalcou changed the title also a generalized numel() that counts the volume of a slice - taking start_axis and end_axis parameters Generalize numel() that counts the volume of a slice May 17, 2022
@jfalcou
Copy link
Owner Author

jfalcou commented Oct 7, 2022

Fixed with merge of #50

@jfalcou
Copy link
Owner Author

jfalcou commented Nov 16, 2022

As of the merge of #50, shape supports slicing operations that return new shapes on which we can apply numel().
I am going to write down a couple pages of documentations for this then close this issue.

@psiha
Copy link
Contributor

psiha commented Mar 17, 2023

waiting for this :) but do consider (ct) efficiency, i.e. overhead of slicers for just, in effect, reduced fold range (than the one in numel() ;P

@jfalcou
Copy link
Owner Author

jfalcou commented Mar 17, 2023

the API is rbr based as usual and has already be simplified. I guess I'll need some TRIVIAL/PURE massaging again.
We support complex slicing so the geenral case is not just a reduced fold range.

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

No branches or pull requests

2 participants