polyvalm problems for defective matrix input