RosettaCodeData/Task/Matrix-transposition/Julia/matrix-transposition.julia

11 lines
187 B
Text
Raw Permalink Normal View History

2013-10-27 22:24:23 +00:00
julia> [1 2 3 ; 4 5 6] # a 2x3 matrix
2x3 Array{Int64,2}:
1 2 3
4 5 6
julia> [1 2 3 ; 4 5 6]' # note the quote
2019-09-12 10:33:56 -07:00
3x2 LinearAlgebra.Adjoint{Int64,Array{Int64,2}}:
2013-10-27 22:24:23 +00:00
1 4
2 5
3 6