Is there a way around the nonjuliance of Python <https://lh3.googleusercontent.com/-tUi2wC7aQ-o/V_faoueyIUI/AAAAAAAAAsk/SLE5nF9N0p05_no_osCrX1XOBbpBWGEyACLcB/s1600/flipped.png> within Python?
Regards, Jeffrey On Friday, October 7, 2016 at 5:51:11 AM UTC-4, Sisyphuss wrote: > > In Julia, we can do multiple dispatch for operators, that is the > interpreter can identify: > float + integer > integer + integer > integer + float > float + float > as well as *user-defined* data structure. > > Recently, I am working on Python (I have no choice because Spark hasn't > yet a Julia binding). I intended to do the same thing -- multiplication -- > between a Numpy matrix and self-defined Low-rank matrix. Of course, I > defined the `__rmul__ ` method for Low-rank matrix. However, it seems to me > that the Numpy matrix intercepts the `*` operator as its `__mul__` method, > which expects the argument on the right side of `*` to be a scalar. > > I would like to know if there is anyway around? > >
