I've submitted a pull request, which modifies the Matrix
class so that additions can be performed with real numbers:
Matrix[ [25, 93], [-1, 66] ] + 5
The Matrix
class has a method +()
, which is called in this case.
I would also like users to be able to change the order of the operation to
5 + Matrix[ [25, 93], [-1, 66] ]
The Matrix
class seems to support this order of operation for the *()
method and I'm unsure how to implement this for the +()
method.