How to fill an array by row in Julia -


i fill array object row in julia language. reshape function wants fill column (julia column major).

julia> reshape(1:15, 3,5) 3x5 array{int64,2}:  1  4  7  10  13  2  5  8  11  14  3  6  9  12  15 

is there way persuade fill row? feels there should obvious answer, i've not found one.

one suggestion:

julia> reshape(1:15, 5, 3) |> transpose 3x5 array{int64,2}:   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -