Answers for "transform matrix python numpy"

0

transpose matrices numpy

import numpy as np

A = [1, 2, 3, 4]
np.array(A).T # .T is used to transpose matrix
Posted by: Guest on May-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language