pdinv now uses dpotri instead of dtrtri and dot