gbequb#
Functions
-
void sgbequb(const INT m, const INT n, const INT kl, const INT ku, const f32 *restrict AB, const INT ldab, f32 *restrict R, f32 *restrict C, f32 *rowcnd, f32 *colcnd, f32 *amax, INT *info)#
SGBEQUB computes row and column scalings intended to equilibrate an
m-by-nband matrix A and reduce its condition number.Rreturns the row scale factors andCthe column scale factors, chosen to try to make the largest element in each row and column of the matrix B with elementsB(i,j)=R(i)*A(i,j)*C(j)have an absolute value of at most the radix.R(i)andC(j)are restricted to be a power of the radix between SMLNUM = smallest safe number and BIGNUM = largest safe number. Use of these scaling factors is not guaranteed to reduce the condition number of A but works well in practice.This routine differs from SGEEQU by restricting the scaling factors to a power of the radix. Barring over- and underflow, scaling by these factors introduces no additional rounding errors. However, the scaled entries’ magnitudes are no longer approximately 1 but lie between
sqrt(radix)and1/sqrt(radix).Parameters
inmThe number of rows of the matrix A.
m>=0.innThe number of columns of the matrix A.
n>=0.inklThe number of subdiagonals within the band of A.
kl>=0.inkuThe number of superdiagonals within the band of A.
ku>=0.inABArray of dimension (
ldab,n). The band matrix A, stored in band format. The matrix A is stored in rows 0 tokl+ku, so thatAB[ku+i-j + j*ldab] = A(i,j)formax(0,j-ku)<=i<=min(m-1,j+kl).inldabThe leading dimension of the array
AB.ldab>=kl+ku+1.outRArray of dimension
m. Ifinfo=0orinfo>m,Rcontains the row scale factors for A.outCArray of dimension
n. Ifinfo=0,Ccontains the column scale factors for A.outrowcndIf
info=0orinfo>m,rowcndcontains the ratio of the smallest R(i) to the largest R(i). Ifrowcnd>=0.1andamaxis neither too large nor too small, it is not worth scaling byR.outcolcndIf
info=0,colcndcontains the ratio of the smallest C(j) to the largest C(j). Ifcolcnd>=0.1, it is not worth scaling byC.outamaxAbsolute value of largest matrix element. If
amaxis very close to overflow or very close to underflow, the matrix should be scaled.outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i, and i isi<=m: the i-th row of A is exactly zero (1-based)i>m: the (i-m)-th column of A is exactly zero (1-based)
void sgbequb(
const INT m,
const INT n,
const INT kl,
const INT ku,
const f32* restrict AB,
const INT ldab,
f32* restrict R,
f32* restrict C,
f32* rowcnd,
f32* colcnd,
f32* amax,
INT* info
);
Functions
-
void dgbequb(const INT m, const INT n, const INT kl, const INT ku, const f64 *restrict AB, const INT ldab, f64 *restrict R, f64 *restrict C, f64 *rowcnd, f64 *colcnd, f64 *amax, INT *info)#
DGBEQUB computes row and column scalings intended to equilibrate an
m-by-nband matrix A and reduce its condition number.Rreturns the row scale factors andCthe column scale factors, chosen to try to make the largest element in each row and column of the matrix B with elementsB(i,j)=R(i)*A(i,j)*C(j)have an absolute value of at most the radix.R(i)andC(j)are restricted to be a power of the radix between SMLNUM = smallest safe number and BIGNUM = largest safe number. Use of these scaling factors is not guaranteed to reduce the condition number of A but works well in practice.This routine differs from DGEEQU by restricting the scaling factors to a power of the radix. Barring over- and underflow, scaling by these factors introduces no additional rounding errors. However, the scaled entries’ magnitudes are no longer approximately 1 but lie between
sqrt(radix)and1/sqrt(radix).Parameters
inmThe number of rows of the matrix A.
m>=0.innThe number of columns of the matrix A.
n>=0.inklThe number of subdiagonals within the band of A.
kl>=0.inkuThe number of superdiagonals within the band of A.
ku>=0.inABArray of dimension (
ldab,n). The band matrix A, stored in band format. The matrix A is stored in rows 0 tokl+ku, so thatAB[ku+i-j + j*ldab] = A(i,j)formax(0,j-ku)<=i<=min(m-1,j+kl).inldabThe leading dimension of the array
AB.ldab>=kl+ku+1.outRArray of dimension
m. Ifinfo=0orinfo>m,Rcontains the row scale factors for A.outCArray of dimension
n. Ifinfo=0,Ccontains the column scale factors for A.outrowcndIf
info=0orinfo>m,rowcndcontains the ratio of the smallest R(i) to the largest R(i). Ifrowcnd>=0.1andamaxis neither too large nor too small, it is not worth scaling byR.outcolcndIf
info=0,colcndcontains the ratio of the smallest C(j) to the largest C(j). Ifcolcnd>=0.1, it is not worth scaling byC.outamaxAbsolute value of largest matrix element. If
amaxis very close to overflow or very close to underflow, the matrix should be scaled.outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i, and i isi<=m: the i-th row of A is exactly zero (1-based)i>m: the (i-m)-th column of A is exactly zero (1-based)
void dgbequb(
const INT m,
const INT n,
const INT kl,
const INT ku,
const f64* restrict AB,
const INT ldab,
f64* restrict R,
f64* restrict C,
f64* rowcnd,
f64* colcnd,
f64* amax,
INT* info
);
Functions
-
void cgbequb(const INT m, const INT n, const INT kl, const INT ku, const c64 *restrict AB, const INT ldab, f32 *restrict R, f32 *restrict C, f32 *rowcnd, f32 *colcnd, f32 *amax, INT *info)#
CGBEQUB computes row and column scalings intended to equilibrate an
m-by-nband matrix A and reduce its condition number.Rreturns the row scale factors andCthe column scale factors, chosen to try to make the largest element in each row and column of the matrix B with elementsB(i,j)=R(i)*A(i,j)*C(j)have an absolute value of at most the radix.R(i)andC(j)are restricted to be a power of the radix between SMLNUM = smallest safe number and BIGNUM = largest safe number. Use of these scaling factors is not guaranteed to reduce the condition number of A but works well in practice.This routine differs from CGEEQU by restricting the scaling factors to a power of the radix. Barring over- and underflow, scaling by these factors introduces no additional rounding errors. However, the scaled entries’ magnitudes are no longer approximately 1 but lie between
sqrt(radix)and1/sqrt(radix).Parameters
inmThe number of rows of the matrix A.
m>=0.innThe number of columns of the matrix A.
n>=0.inklThe number of subdiagonals within the band of A.
kl>=0.inkuThe number of superdiagonals within the band of A.
ku>=0.inABArray of dimension (
ldab,n). The band matrix A, stored in band format. The matrix A is stored in rows 0 tokl+ku, so thatAB[ku+i-j + j*ldab] = A(i,j)formax(0,j-ku)<=i<=min(m-1,j+kl).inldabThe leading dimension of the array
AB.ldab>=kl+ku+1.outRArray of dimension
m. Ifinfo=0orinfo>m,Rcontains the row scale factors for A.outCArray of dimension
n. Ifinfo=0,Ccontains the column scale factors for A.outrowcndIf
info=0orinfo>m,rowcndcontains the ratio of the smallest R(i) to the largest R(i). Ifrowcnd>=0.1andamaxis neither too large nor too small, it is not worth scaling byR.outcolcndIf
info=0,colcndcontains the ratio of the smallest C(j) to the largest C(j). Ifcolcnd>=0.1, it is not worth scaling byC.outamaxAbsolute value of largest matrix element. If
amaxis very close to overflow or very close to underflow, the matrix should be scaled.outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i, and i isi<=m: the i-th row of A is exactly zero (1-based)i>m: the (i-m)-th column of A is exactly zero (1-based)
void cgbequb(
const INT m,
const INT n,
const INT kl,
const INT ku,
const c64* restrict AB,
const INT ldab,
f32* restrict R,
f32* restrict C,
f32* rowcnd,
f32* colcnd,
f32* amax,
INT* info
);
Functions
-
void zgbequb(const INT m, const INT n, const INT kl, const INT ku, const c128 *restrict AB, const INT ldab, f64 *restrict R, f64 *restrict C, f64 *rowcnd, f64 *colcnd, f64 *amax, INT *info)#
ZGBEQUB computes row and column scalings intended to equilibrate an
m-by-nband matrix A and reduce its condition number.Rreturns the row scale factors andCthe column scale factors, chosen to try to make the largest element in each row and column of the matrix B with elementsB(i,j)=R(i)*A(i,j)*C(j)have an absolute value of at most the radix.R(i)andC(j)are restricted to be a power of the radix between SMLNUM = smallest safe number and BIGNUM = largest safe number. Use of these scaling factors is not guaranteed to reduce the condition number of A but works well in practice.This routine differs from ZGEEQU by restricting the scaling factors to a power of the radix. Barring over- and underflow, scaling by these factors introduces no additional rounding errors. However, the scaled entries’ magnitudes are no longer approximately 1 but lie between
sqrt(radix)and1/sqrt(radix).Parameters
inmThe number of rows of the matrix A.
m>=0.innThe number of columns of the matrix A.
n>=0.inklThe number of subdiagonals within the band of A.
kl>=0.inkuThe number of superdiagonals within the band of A.
ku>=0.inABArray of dimension (
ldab,n). The band matrix A, stored in band format. The matrix A is stored in rows 0 tokl+ku, so thatAB[ku+i-j + j*ldab] = A(i,j)formax(0,j-ku)<=i<=min(m-1,j+kl).inldabThe leading dimension of the array
AB.ldab>=kl+ku+1.outRArray of dimension
m. Ifinfo=0orinfo>m,Rcontains the row scale factors for A.outCArray of dimension
n. Ifinfo=0,Ccontains the column scale factors for A.outrowcndIf
info=0orinfo>m,rowcndcontains the ratio of the smallest R(i) to the largest R(i). Ifrowcnd>=0.1andamaxis neither too large nor too small, it is not worth scaling byR.outcolcndIf
info=0,colcndcontains the ratio of the smallest C(j) to the largest C(j). Ifcolcnd>=0.1, it is not worth scaling byC.outamaxAbsolute value of largest matrix element. If
amaxis very close to overflow or very close to underflow, the matrix should be scaled.outinfoinfo=0: successful exitinfo<0: ifinfo=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i, and i isi<=m: the i-th row of A is exactly zero (1-based)i>m: the (i-m)-th column of A is exactly zero (1-based)
void zgbequb(
const INT m,
const INT n,
const INT kl,
const INT ku,
const c128* restrict AB,
const INT ldab,
f64* restrict R,
f64* restrict C,
f64* rowcnd,
f64* colcnd,
f64* amax,
INT* info
);