Skip to content

add rank member to rtensor and rarray #136

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

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

ThibHlln
Copy link
Contributor

@ThibHlln ThibHlln commented Jan 3, 2023

Hi,

I noticed that rtensor and rarray did not have a rank member such that

xt::get_rank<xt::rtensor<double, 2>>::value

returns SIZE_MAX instead of 2.

So this PR adds a rank member to these objects, taking inspiration from the one made for xtensor-python (xtensor-stack/xtensor-python#241).

@JohanMabille
Copy link
Member

The errors on the CI are not related to this PR. I'm gonna fix them in a separated PR, once it is merged you can rebase this one and everything should be green ;)

@JohanMabille
Copy link
Member

Here you go.

@ThibHlln
Copy link
Contributor Author

ThibHlln commented Jan 4, 2023

Thank you Johan. :-)
I have now rebased my PR with your CI fix.

@JohanMabille JohanMabille merged commit 3f88fc3 into xtensor-stack:master Jan 4, 2023
@ThibHlln
Copy link
Contributor Author

ThibHlln commented Jan 4, 2023

Would it be possible to get a new tag/release including the new rank member please?

@JohanMabille
Copy link
Member

sure!

@ThibHlln ThibHlln deleted the add-rank-member branch January 4, 2023 09:58
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