frontend support for matrix dimension expressions