/** * Transposes the elements of the given matrix (array of arrays). * The transpose of a matrix is a new matrix whose rows are the columns of the original. * * A Matrix is simply an array of arrays, where each sub-array (the rows) have the same length: * * let matrix2 = [ * [ 1, 1, 1, 1, 1, 1 ], * [ 2, 0, 0, 0, 0, 4 ], * [ 2, 0, 1, 2, 0, 4 ], * [ 2, 0, 3, 4, 0, 4 ], * [ 2, 0, 0, 0, 0, 4 ], * [ 3, 3, 3, 3, 3, 3 ] *]; * * Row elements can be any data-type (number, string, Object, etc) * * @method * @param {Array} array - The matrix to transpose. * @return {Array} A new transposed matrix */ export default function (array: any): any[];