Skip to content

Commit 59f26b6

Browse files
authored
row vector -> column vector
See #96
1 parent 64cc2ed commit 59f26b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-numpy-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ print x + v
907907
# [[ 5 6 7]
908908
# [ 9 10 11]]
909909
print (x.T + w).T
910-
# Another solution is to reshape w to be a row vector of shape (2, 1);
910+
# Another solution is to reshape w to be a column vector of shape (2, 1);
911911
# we can then broadcast it directly against x to produce the same
912912
# output.
913913
print x + np.reshape(w, (2, 1))

0 commit comments

Comments
 (0)