laneg#
Functions
-
INT slaneg(const INT n, const f32 *D, const f32 *lld, const f32 sigma, const f32 pivmin, const INT r)#
SLANEG computes the Sturm count, the number of negative pivots encountered while factoring tridiagonal T - sigma I = L D L^T.
This implementation works directly on the factors without forming the tridiagonal matrix T. The Sturm count is also the number of eigenvalues of T less than sigma.
This routine is called from SLARRB.
The current routine does not use the PIVMIN parameter but rather requires IEEE-754 propagation of Infinities and NaNs.
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).
insigmaShift amount in T - sigma I = L D L^T.
inpivminThe minimum pivot in the Sturm sequence.
inrThe twist index for the twisted factorization.
INT slaneg(
const INT n,
const f32* D,
const f32* lld,
const f32 sigma,
const f32 pivmin,
const INT r
);
Functions
-
INT dlaneg(const INT n, const f64 *D, const f64 *lld, const f64 sigma, const f64 pivmin, const INT r)#
DLANEG computes the Sturm count, the number of negative pivots encountered while factoring tridiagonal T - sigma I = L D L^T.
This implementation works directly on the factors without forming the tridiagonal matrix T. The Sturm count is also the number of eigenvalues of T less than sigma.
This routine is called from DLARRB.
The current routine does not use the PIVMIN parameter but rather requires IEEE-754 propagation of Infinities and NaNs.
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).
insigmaShift amount in T - sigma I = L D L^T.
inpivminThe minimum pivot in the Sturm sequence.
inrThe twist index for the twisted factorization.
INT dlaneg(
const INT n,
const f64* D,
const f64* lld,
const f64 sigma,
const f64 pivmin,
const INT r
);