instantiate useful matrix types in cpp