# File lib/Matriz.rb, line 27 def traspuesta () aux_m = Array.new @filas.times do |i| aux_m[i] = Array.new @cols.times do |j| aux_m[i][j] = @matriz[(@filas-1)-i][(@cols-1)-j] end end Matriz.new(aux_m).comprobar end