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
{{ message }}
This repository was archived by the owner on Jun 2, 2025. It is now read-only.
Arthur Guiot edited this page Jul 12, 2017
·
1 revision
How does it work?
This function is the opposite of $.reshape(). Instead of creating 2d arrays from a 1d array, the $.flatten() will create a 1d array from a 2d array, like that:
[[0,1],[2,3],[4,5]]// |// v[0,1,2,3,4,5]
How to use it?
It's pretty simple, you simply need to give as an argument a 2d array.