Anonymous user
Matrix transposition: Difference between revisions
m
→{{header|Ruby}}: Remove phantom category 'matrix.rb'.
(→{{header|C}}: proper casting; improve tag) |
m (→{{header|Ruby}}: Remove phantom category 'matrix.rb'.) |
||
Line 1,482:
Output:
[[1, 2, 3, 4, 5], [1, 4, 9, 16, 25], [1, 8, 27, 64, 125], [1, 16, 81, 256, 625]]
or using
<lang ruby>require 'matrix'
|