Stan Math Library
5.0.0
Automatic Differentiation
|
int stan::math::opencl_kernels::get_sturm_count_ldl | ( | const __global double_d * | l, |
const __global double_d * | d, | ||
const double_d | shift, | ||
const int | n | ||
) |
Calculates Sturm count of a LDL decomposition of a tridiagonal matrix - number of eigenvalues larger or equal to shift.
Uses stqds - calculation of shifted LDL decomposition algorithm and counts number of positive elements in D.
l | Subdiagonal of L. |
d | Diagonal of D. |
shift | Shift. |
n | Length of L. |