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

◆ eigenvals()

__kernel void stan::math::opencl_kernels::eigenvals ( const __global double *  diagonal,
const __global double *  subdiagonal_squared,
const __global double_d l,
const __global double_d d,
__global double *  eigval_global,
__global double_d shifted_low_global,
__global double_d shifted_high_global,
const double  min_eigval,
const double  max_eigval,
const double  shift,
const char  do_refine 
)

Calculates eigenvalues of a tridiagonal matrix T and refines shifted eigenvalues using shifted LDL decomposition of T.

Parameters
diagonaldiagonal of T
subdiagonal_squaredelement-wise squared subdiagonal of T
lsubdiagonal of L
ddiagonal of D
[out]eigval_globaleigenvalues of T
[out]shifted_low_globallower bounds on shifted eigenvalues
[out]shifted_high_globalupper bounds on shifted eigenvalues
min_eigvalinitial lower bound on eigenvalues
max_eigvalinitial upper bound on eigenvalues
shiftshift of the LDL decomposition
do_refineif non-zero, refines the shifted eigenvalues

Definition at line 161 of file mrrr.hpp.