W2_A2_Understanding Transpose of a matrix

The code given to create a 1 x m matrix for Z was done with this line of code:

Z = np.dot(w.T, X) + b

I understand that w^T is the transpose of the vector w, but what does ‘w.T’ mean? Is ‘T’ a function/method that can be performed on matrix objects to transpose them?

.T is a method that transposes a matrix.

1 Like