MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / transpose

Function transpose

matrix/matrix_multiplication_addition.py:32–33  ·  view source on GitHub ↗
(matrix)

Source from the content-addressed store, hash-verified

30 return [[int(row == column) for column in range(n)] for row in range(n)]
31
32def transpose(matrix):
33 return map(list , zip(*matrix))
34
35def minor(matrix, row, column):
36 minor = matrix[:row] + matrix[row + 1:]

Callers 1

inverseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected