Commit 80706e5
committed
Fix np.asmatrix replacement: correct reshape to match original behavior
The original np.asmatrix on a 1D array creates a row vector (1, m), which when
transposed becomes (m, 1). The previous fix created (m, 1) directly, which
when transposed gave (1, m), causing a shape mismatch in np.append.
Changed reshape(-1, 1) to reshape(1, -1) to match the original np.asmatrix behavior.1 parent de2b164 commit 80706e5
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| |||
0 commit comments