complet matrix functions