| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
It's just a WIP, when there's no axis given. Feel free to comment, I'm new to xtensor's internal. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you very much!
Sorry, something went wrong.
There was a problem hiding this comment.
I didn't notice the first time (maybe you switched to another machine), it seems that the indentation in the roll function is 2 spaces instead of 4 (like it is in the cpp for testing or other functions in the header).
Once the nformatting is fixed, do you want this PR to be merged and to implement the overload taking an axis parameter in another PR? Or do you prefer to implement everything in a single PR?
Sorry, something went wrong.
| } | ||
|
|
||
| template<class E> | ||
| inline auto roll(E&& e, std::ptrdiff_t shift) { |
There was a problem hiding this comment.
Formatting: opening curly brace should be on a new line
Sorry, something went wrong.
| std::copy(eflat_view.begin(), eflat_view.begin() + shift, | ||
| std::copy(eflat_view.begin() + shift, eflat_view.end(), cpyflat_view.begin())); | ||
| } | ||
| else { |
There was a problem hiding this comment.
Same here
Sorry, something went wrong.
|
Validation fixed and comments taken into account!
I'll implement the axis stuff first, if that's okay with you. |
Sorry, something went wrong.
There was a problem hiding this comment.
I think you still have a mix of 2 spaces and 4 spaces indentation.
Sorry, something went wrong.
|
Also regarding travis-ci:
|
Sorry, something went wrong.
|
@JohanMabille everything looks fine now? |
Sorry, something went wrong.
|
Almost, it seems that the indentation is still 2 spaces instead of 4. |
Sorry, something went wrong.
|
Also notice that the error on travisci will disappear when the PR is merged (or if it is rebased on master before merging). |
Sorry, something went wrong.
|
There are actually other parts of the library with 2 spaces indentation, let's merge as is, I will do another pass to clean everything at once. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fix #1766