How To Check Consistency Of Matrix Definition