larrb#
Functions
-
void slarrb(const INT n, const f32 *D, const f32 *lld, const INT ifirst, const INT ilast, const f32 rtol1, const f32 rtol2, const INT offset, f32 *W, f32 *wgap, f32 *werr, f32 *work, INT *iwork, const f32 pivmin, const f32 spdiam, const INT twist, INT *info)#
Given the relatively robust representation(RRR) L D L^T, SLARRB does “limited” bisection to refine the eigenvalues of L D L^T, W( IFIRST-OFFSET ) through W( ILAST-OFFSET ), to more accuracy.
Initial guesses for these eigenvalues are input in W, the corresponding estimate of the error in these guesses and their gaps are input in WERR and WGAP, respectively. During bisection, intervals [left, right] are maintained by storing their mid-points and semi-widths in the arrays W and WERR respectively.
Parameters
innThe order of the matrix.
inDDouble precision array, dimension (N). The N diagonal elements of the diagonal matrix D.
inlldDouble precision array, dimension (N-1). The (N-1) elements L(i)*L(i)*D(i).
inifirstThe index of the first eigenvalue to be computed (0-based).
inilastThe index of the last eigenvalue to be computed (0-based).
inrtol1Tolerance for the convergence of the bisection intervals.
inrtol2Tolerance for the convergence of the bisection intervals. An interval [LEFT,RIGHT] has converged if RIGHT-LEFT < MAX( RTOL1*GAP, RTOL2*MAX(|LEFT|,|RIGHT|) ) where GAP is the (estimated) distance to the nearest eigenvalue.
inoffsetOffset for the arrays W, WGAP and WERR, i.e., the IFIRST-OFFSET through ILAST-OFFSET elements of these arrays are to be used.
inoutWDouble precision array, dimension (N). On input, W( IFIRST-OFFSET ) through W( ILAST-OFFSET ) are estimates of the eigenvalues of L D L^T indexed IFIRST through ILAST. On output, these estimates are refined.
inoutwgapDouble precision array, dimension (N-1). On input, the (estimated) gaps between consecutive eigenvalues of L D L^T. Note that if IFIRST = ILAST then WGAP(IFIRST-OFFSET) must be set to ZERO. On output, these gaps are refined.
inoutwerrDouble precision array, dimension (N). On input, WERR( IFIRST-OFFSET ) through WERR( ILAST-OFFSET ) are the errors in the estimates of the corresponding elements in W. On output, these errors are refined.
outworkDouble precision array, dimension (2*N). Workspace.
outiworkInteger array, dimension (2*N). Workspace.
inpivminThe minimum pivot in the Sturm sequence.
inspdiamThe spectral diameter of the matrix.
intwistThe twist index for the twisted factorization that is used for the negcount. TWIST = N-1: Compute negcount from L D L^T - LAMBDA I = L+ D+ L+^T TWIST = 0: Compute negcount from L D L^T - LAMBDA I = U- D- U-^T TWIST = R: Compute negcount from L D L^T - LAMBDA I = N(r) D(r) N(r)
outinfoError flag.
void slarrb(
const INT n,
const f32* D,
const f32* lld,
const INT ifirst,
const INT ilast,
const f32 rtol1,
const f32 rtol2,
const INT offset,
f32* W,
f32* wgap,
f32* werr,
f32* work,
INT* iwork,
const f32 pivmin,
const f32 spdiam,
const INT twist,
INT* info
);
Functions
-
void dlarrb(const INT n, const f64 *D, const f64 *lld, const INT ifirst, const INT ilast, const f64 rtol1, const f64 rtol2, const INT offset, f64 *W, f64 *wgap, f64 *werr, f64 *work, INT *iwork, const f64 pivmin, const f64 spdiam, const INT twist, INT *info)#
Given the relatively robust representation(RRR) L D L^T, DLARRB does “limited” bisection to refine the eigenvalues of L D L^T, W( IFIRST-OFFSET ) through W( ILAST-OFFSET ), to more accuracy.
Initial guesses for these eigenvalues are input in W, the corresponding estimate of the error in these guesses and their gaps are input in WERR and WGAP, respectively. During bisection, intervals [left, right] are maintained by storing their mid-points and semi-widths in the arrays W and WERR respectively.
Parameters
innThe order of the matrix.
inDDouble precision array, dimension (N). The N diagonal elements of the diagonal matrix D.
inlldDouble precision array, dimension (N-1). The (N-1) elements L(i)*L(i)*D(i).
inifirstThe index of the first eigenvalue to be computed (0-based).
inilastThe index of the last eigenvalue to be computed (0-based).
inrtol1Tolerance for the convergence of the bisection intervals.
inrtol2Tolerance for the convergence of the bisection intervals. An interval [LEFT,RIGHT] has converged if RIGHT-LEFT < MAX( RTOL1*GAP, RTOL2*MAX(|LEFT|,|RIGHT|) ) where GAP is the (estimated) distance to the nearest eigenvalue.
inoffsetOffset for the arrays W, WGAP and WERR, i.e., the IFIRST-OFFSET through ILAST-OFFSET elements of these arrays are to be used.
inoutWDouble precision array, dimension (N). On input, W( IFIRST-OFFSET ) through W( ILAST-OFFSET ) are estimates of the eigenvalues of L D L^T indexed IFIRST through ILAST. On output, these estimates are refined.
inoutwgapDouble precision array, dimension (N-1). On input, the (estimated) gaps between consecutive eigenvalues of L D L^T. Note that if IFIRST = ILAST then WGAP(IFIRST-OFFSET) must be set to ZERO. On output, these gaps are refined.
inoutwerrDouble precision array, dimension (N). On input, WERR( IFIRST-OFFSET ) through WERR( ILAST-OFFSET ) are the errors in the estimates of the corresponding elements in W. On output, these errors are refined.
outworkDouble precision array, dimension (2*N). Workspace.
outiworkInteger array, dimension (2*N). Workspace.
inpivminThe minimum pivot in the Sturm sequence.
inspdiamThe spectral diameter of the matrix.
intwistThe twist index for the twisted factorization that is used for the negcount. TWIST = N-1: Compute negcount from L D L^T - LAMBDA I = L+ D+ L+^T TWIST = 0: Compute negcount from L D L^T - LAMBDA I = U- D- U-^T TWIST = R: Compute negcount from L D L^T - LAMBDA I = N(r) D(r) N(r)
outinfoError flag.
void dlarrb(
const INT n,
const f64* D,
const f64* lld,
const INT ifirst,
const INT ilast,
const f64 rtol1,
const f64 rtol2,
const INT offset,
f64* W,
f64* wgap,
f64* werr,
f64* work,
INT* iwork,
const f64 pivmin,
const f64 spdiam,
const INT twist,
INT* info
);