added checks for cholesky and lower triangular