rewrite some of the mat*mat, mat*vec intrinsics

Also, remove obsolete matrix codegen code.
3 files changed