Complete mat basic operation