-
Notifications
You must be signed in to change notification settings - Fork 20
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
Squeeze #25
Comments
|
You can create PR for |
The problem with
|
No idea is good. This is major difference between numpy and ndslice |
Hmm while compile-time dimensions are really awesome, this seems to be a major limitation that we should think about if we ever want to challenge NumPy (or similar libs). Pinging reviewers and participants of the merge into phobos for their opinions and ideas: @John-Colvin @burner @TurkeyMan @nordlow @SFrijters @JackStouffer @klickverbot |
@greenify This is not very good idea to ping all at once =) Could you provide a real world example where this feature is required? |
@absolutelyEveryoneEver I'll look at this tomorrow |
I am sorry - acted to rash. I will remember it. Sorry for spamming you @ pinged people.
How you would implement |
You always can use 2D matrix |
Or you can use |
I have thought long about this and no I can't. http://northstar-www.dartmouth.edu/doc/idl/html_6.2/REFORM.html
Well let's assume you want to load a file from MatLab/R which is unknown to one, e.g.
Of course one could write a wrapper around such format to determine the dimensions, but ultimately we need to its dimensions and I guess that any application that wants to do more based on dynamic dimensions is rare and well better off to switch to a dynamic language. Maybe it was just too many years of programming in dynamically typed languages (Python, JavaScript, NodeJs, ...) that I saw this to be problematic. ==> a big sorry to all the people that I spammed, but at least know you know that development for Just for complete here's a list of Octave:https://www.gnu.org/software/octave/doc/interpreter/Object-Sizes.html |
Yet another nice method that NumPy has.
Remove single-dimensional entries from the shape of an array.
https://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.squeeze.html#numpy.squeeze
The text was updated successfully, but these errors were encountered: