Overloading stream insertion operator << for ScalarMatrixFunc.
Adding overloaded stream insertion operators << for MatrixMatrixFunc