Matrix transposition: Difference between revisions
Content added Content deleted
m (→{{header|Ruby}}: add libheader) |
|||
Line 525: | Line 525: | ||
Output: |
Output: |
||
[[1, 2, 3, 4, 5], [1, 4, 9, 16, 25], [1, 8, 27, 64, 125], [1, 16, 81, 256, 625]] |
[[1, 2, 3, 4, 5], [1, 4, 9, 16, 25], [1, 8, 27, 64, 125], [1, 16, 81, 256, 625]] |
||
or using {{libheader|matrix.rb}} |
|||
or |
|||
<lang ruby>require 'matrix' |
<lang ruby>require 'matrix' |
||