Transposing a matrix means swapping its columns with its rows.
For example, with a matrix of
we turn it into
In Python, one way to do this is to use zip
with splat operator:
Transposing a matrix means swapping its columns with its rows.
For example, with a matrix of
we turn it into
In Python, one way to do this is to use zip
with splat operator: