Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of arithmetic on MultiVector pairs (#283)
The previous code was optimized for `MultiVector <op> something_else`, incurring an expensive `isinstance(other, numbers.Number)` check. This changes it to check `isinstance(other, MultiVector)` first, which is the case that is going to be most frequent.
- Loading branch information