Arithmetic Operations with Other Classes

As in page Conversions Between Matrix Classes, addition/subtraction/multiplication can be carried through between arbitrary classes of matrices using the usual overloaded operators, with the same caveats mentioned in page Conversions Between Matrix Classes. In particular, for most classes addition/subtraction/multplication with another class will result in a matrix of type Matrix.

To avoid nasty surprises due to implicit conversion we recommend to use explicit conversion to one common matrix class whenever using a combination of different matrix classes.