Determine the default latex matrix type according to size.