Extended dotMPI for all matrix operations.