On the other hand, A+a in Matlab behaves like . We adopt this convention here, provisionally, as this is also the default of NumPy. This need more discussions.
At the moment scalar are represented by native Python numbers. However,
we also implemented a Scalar wrapper class so that it can have its
own class methods such as __repr__
and be subclassed. Hopefully
in the future python can have a native Number class.