matrix: add two NxN matrices.
matmat_vec and matmat_spec are not currently used.