#926
behold my code:
int main() {
xt::xarray<float> a = xt::zeros<float>({3, 3, 3});
auto b = xt::reshape_view(a, {3, -1});
cout << xt::adapt(a.shape()) << endl;
cout << xt::adapt(b.shape()) << endl;
}
and it's unexpected output
{3, 3, 3}
{ 3, 18446744073709551615}
While nowhere in the documentation does it claim to handle -1 as numpy does, and this is probably just my fault for assuming this, it would be very convenient if it did.
#926
behold my code:
and it's unexpected output
While nowhere in the documentation does it claim to handle -1 as numpy does, and this is probably just my fault for assuming this, it would be very convenient if it did.