// 矩阵转置操作 function transposeMatrix(matrix) { const rows = matrix.length; const cols = matrix[0].length; const result = Array.from({ length: cols }, () => Array(rows).fill(0)); for (l
// 矩阵转置操作 function transposeMatrix(matrix) { const rows = matrix.length; const cols = matrix[0].length; const result = Array.from({ length: cols }, () => Array(rows).fill(0)); for (l