You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to support the numpy equivalent of boolean functions like ndarray.all(axis=...) / ndarray.any(axis=...) and went over the xtensor documentation. I came across xt::all() and xt::any().
I believe checking across the specified axis is not implemented for now. @JohanMabille Do we have a alternative workaround for this as of now, or plan to support this in the future ?
The text was updated successfully, but these errors were encountered:
What I would do is use the xt::axis_iterator and apply your logical function of choice to the dereferenced iterator and then use a loop to iterate through all the slices.
I wanted to support the numpy equivalent of boolean functions like
ndarray.all(axis=...)
/ndarray.any(axis=...)
and went over the xtensor documentation. I came acrossxt::all()
andxt::any()
.I believe checking across the specified axis is not implemented for now.
@JohanMabille Do we have a alternative workaround for this as of now, or plan to support this in the future ?
The text was updated successfully, but these errors were encountered: