bugfix input matrix to dpotrf was not SPD.