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

◆ get_sturm_count_tri()

int stan::math::opencl_kernels::get_sturm_count_tri ( const __global double *  diagonal,
const __global double *  subdiagonal_squared,
const double  shift,
const int  n 
)

Calculates lower Sturm count of a tridiagonal matrix T - number of eigenvalues lower than shift.

Parameters
diagonalDiagonal of T.
subdiagonal_squaredSquared elements of subdiagonal of T.
shift
nSize of T.
Returns
Sturm count

Definition at line 26 of file mrrr.hpp.