Again, no need to use SGMatrix<>&, SGMatrix<> can bring changes out the function.