MatMAtModM Returns C = A*B % m. Work even if A = C or B = C or A = B = C.
function MatMatModM input Real[3, 3] A; input Real[3, 3] B; input Real m; output Real[3, 3] C; end MatMatModM;