refactored matrix dimension strings from <name>-<dim> to <name>-><dim> to make code generation easier