-
Notifications
You must be signed in to change notification settings - Fork 54
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
how to reshape a ndarray? #46
Comments
It doesn't have
This will probably work perfectly well for simple cases where the array is not already a stepped or transposed view, but be advised that TBH it does seem like a bit of missing functionality to do this with strict checking so that you know the result is valid. |
That's what I need, thanks.
you'll see that both a.data and b.data = [1]. That's weird. |
Yes, you can always call |
Yes, |
Btw, are there any better modules to let me perform these operations as smoothly as pytorch? |
The only other module I know of is stdlib/ndarray. The Stdlib project is aiming to be much closer to numpy ndarrays, both in terms of design and extensibility, but although it's a much more complete foundation, it doesn't yet have an ecosystem of tools around it. I'm not too familiar with tensorflow, but if your interest is in ML, those toolkits might have more to offer than scijs/ndarray. |
Does this module has methods similar to
reshape(A, m, n)
in matlab? If so, how can I use it?The text was updated successfully, but these errors were encountered: