Forgot to move some matn methods to hpp file.