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

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -