1#ifndef STAN_MATH_PRIM_ERR_IS_LDLT_FACTOR_HPP
2#define STAN_MATH_PRIM_ERR_IS_LDLT_FACTOR_HPP
22 return A.ldlt().info() == Eigen::Success && A.ldlt().isPositive()
23 && (A.ldlt().vectorD().array() > 0).
all();
LDLT_factor is a structure that holds a matrix of type T and the LDLT of its values.
constexpr bool all(T x)
Return true if all values in the input are true.
bool is_ldlt_factor(LDLT_factor< T > &A)
Return true if the specified LDLT factor is invalid.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...