lasv2#
Functions
-
void slasv2(const f32 f, const f32 g, const f32 h, f32 *ssmin, f32 *ssmax, f32 *snr, f32 *csr, f32 *snl, f32 *csl)#
SLASV2 computes the singular value decomposition of a 2-by-2 triangular matrix [ F G ] [ 0 H ].
On return, abs(SSMAX) is the larger singular value, abs(SSMIN) is the smaller singular value, and (CSL,SNL) and (CSR,SNR) are the left and right singular vectors for abs(SSMAX), giving the decomposition
[ CSL SNL ] [ F G ] [ CSR -SNR ] = [ SSMAX 0 ] [-SNL CSL ] [ 0 H ] [ SNR CSR ] [ 0 SSMIN ].
Parameters
infThe (1,1) element of the 2-by-2 matrix.
ingThe (1,2) element of the 2-by-2 matrix.
inhThe (2,2) element of the 2-by-2 matrix.
outssminabs(SSMIN) is the smaller singular value.
outssmaxabs(SSMAX) is the larger singular value.
outsnrThe vector (CSR, SNR) is a unit right singular vector for the singular value abs(SSMAX).
outcsrThe vector (CSR, SNR) is a unit right singular vector for the singular value abs(SSMAX).
outsnlThe vector (CSL, SNL) is a unit left singular vector for the singular value abs(SSMAX).
outcslThe vector (CSL, SNL) is a unit left singular vector for the singular value abs(SSMAX).
void slasv2(
const f32 f,
const f32 g,
const f32 h,
f32* ssmin,
f32* ssmax,
f32* snr,
f32* csr,
f32* snl,
f32* csl
);
Functions
-
void dlasv2(const f64 f, const f64 g, const f64 h, f64 *ssmin, f64 *ssmax, f64 *snr, f64 *csr, f64 *snl, f64 *csl)#
DLASV2 computes the singular value decomposition of a 2-by-2 triangular matrix [ F G ] [ 0 H ].
On return, abs(SSMAX) is the larger singular value, abs(SSMIN) is the smaller singular value, and (CSL,SNL) and (CSR,SNR) are the left and right singular vectors for abs(SSMAX), giving the decomposition
[ CSL SNL ] [ F G ] [ CSR -SNR ] = [ SSMAX 0 ] [-SNL CSL ] [ 0 H ] [ SNR CSR ] [ 0 SSMIN ].
Parameters
infThe (1,1) element of the 2-by-2 matrix.
ingThe (1,2) element of the 2-by-2 matrix.
inhThe (2,2) element of the 2-by-2 matrix.
outssminabs(SSMIN) is the smaller singular value.
outssmaxabs(SSMAX) is the larger singular value.
outsnrThe vector (CSR, SNR) is a unit right singular vector for the singular value abs(SSMAX).
outcsrThe vector (CSR, SNR) is a unit right singular vector for the singular value abs(SSMAX).
outsnlThe vector (CSL, SNL) is a unit left singular vector for the singular value abs(SSMAX).
outcslThe vector (CSL, SNL) is a unit left singular vector for the singular value abs(SSMAX).
void dlasv2(
const f64 f,
const f64 g,
const f64 h,
f64* ssmin,
f64* ssmax,
f64* snr,
f64* csr,
f64* snl,
f64* csl
);