Jump to content

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 {{libheader|'matrix.rb}}' from the standard library
<lang ruby>require 'matrix'
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.