Mix input type in same matrix