Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ get_sturm_count_ldl()

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.

Parameters
lSubdiagonal of L.
dDiagonal of D.
shiftShift.
nLength of L.
Returns
Sturm count.

Definition at line 86 of file mrrr.hpp.