function name
merge matrix class type