Robust GEMM operator