Repository navigation
Commit cfc78fa
committed
BUG: solve issue numpy#2649.
The issue is similar to numpy#473, multipliaction of a matrix and a
column-vector returns a row-vector. That solution is to convert 1d
array, list, tuple to matrix before multiplying. What causes numpy#2649 is that
matrix will use dot function which is inherited from ndarray. My solution is
to use __mul__ function instead. It will throw an error when user try to
multiply a squre matrix and a 1d array.1 parent fd6f038 commit cfc78fa
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
| 338 | + | |
337 | 339 | | |
338 | 340 | | |
339 | 341 | | |
| |||
385 | 387 | | |
386 | 388 | | |
387 | 389 | | |
| 390 | + | |
388 | 391 | | |
389 | 392 | | |
390 | 393 | | |
| |||
0 commit comments