matrix input support