You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid output shape from np.dot with matrixes (Trac #2057) #2649
I'm going to close this. This is a topic of endless discussion whenever 'fixing' matrices comes up. The current behaviour is that a 1D vector on the left acts like a row vector, and on the right acts like a column vector. By default, matrix([1,2,3]) is a row vector. Unfortunate, but true, and likely to stay that way until someone rethinks the matrix package.
If you need row and column vectors, you need to construct them as matrices. Maybe adding functions rowvec, colvec to construct the relevant matrices would help.
Activity
BUG: solve issue numpy#2649.
charris commentedon Feb 21, 2014
I'm going to close this. This is a topic of endless discussion whenever 'fixing' matrices comes up. The current behaviour is that a 1D vector on the left acts like a row vector, and on the right acts like a column vector. By default, matrix([1,2,3]) is a row vector. Unfortunate, but true, and likely to stay that way until someone rethinks the matrix package.
charris commentedon Feb 21, 2014
If you need row and column vectors, you need to construct them as matrices. Maybe adding functions rowvec, colvec to construct the relevant matrices would help.