.TH "lartgp" 3 "Wed Feb 7 2024 11:30:40" "Version 3.12.0" "LAPACK" \" -*- nroff -*- .ad l .nh .SH NAME lartgp \- lartgp: generate plane rotation, more accurate than BLAS rot .SH SYNOPSIS .br .PP .SS "Functions" .in +1c .ti -1c .RI "subroutine \fBdlartgp\fP (f, g, cs, sn, r)" .br .RI "\fBDLARTGP\fP generates a plane rotation so that the diagonal is nonnegative\&. " .ti -1c .RI "subroutine \fBslartgp\fP (f, g, cs, sn, r)" .br .RI "\fBSLARTGP\fP generates a plane rotation so that the diagonal is nonnegative\&. " .in -1c .SH "Detailed Description" .PP .SH "Function Documentation" .PP .SS "subroutine dlartgp (double precision f, double precision g, double precision cs, double precision sn, double precision r)" .PP \fBDLARTGP\fP generates a plane rotation so that the diagonal is nonnegative\&. .PP \fBPurpose:\fP .RS 4 .PP .nf DLARTGP generates a plane rotation so that [ CS SN ] \&. [ F ] = [ R ] where CS**2 + SN**2 = 1\&. [ -SN CS ] [ G ] [ 0 ] This is a slower, more accurate version of the Level 1 BLAS routine DROTG, with the following other differences: F and G are unchanged on return\&. If G=0, then CS=(+/-)1 and SN=0\&. If F=0 and (G \&.ne\&. 0), then CS=0 and SN=(+/-)1\&. The sign is chosen so that R >= 0\&. .fi .PP .RE .PP \fBParameters\fP .RS 4 \fIF\fP .PP .nf F is DOUBLE PRECISION The first component of vector to be rotated\&. .fi .PP .br \fIG\fP .PP .nf G is DOUBLE PRECISION The second component of vector to be rotated\&. .fi .PP .br \fICS\fP .PP .nf CS is DOUBLE PRECISION The cosine of the rotation\&. .fi .PP .br \fISN\fP .PP .nf SN is DOUBLE PRECISION The sine of the rotation\&. .fi .PP .br \fIR\fP .PP .nf R is DOUBLE PRECISION The nonzero component of the rotated vector\&. This version has a few statements commented out for thread safety (machine parameters are computed on each entry)\&. 10 feb 03, SJH\&. .fi .PP .RE .PP \fBAuthor\fP .RS 4 Univ\&. of Tennessee .PP Univ\&. of California Berkeley .PP Univ\&. of Colorado Denver .PP NAG Ltd\&. .RE .PP .SS "subroutine slartgp (real f, real g, real cs, real sn, real r)" .PP \fBSLARTGP\fP generates a plane rotation so that the diagonal is nonnegative\&. .PP \fBPurpose:\fP .RS 4 .PP .nf SLARTGP generates a plane rotation so that [ CS SN ] \&. [ F ] = [ R ] where CS**2 + SN**2 = 1\&. [ -SN CS ] [ G ] [ 0 ] This is a slower, more accurate version of the Level 1 BLAS routine SROTG, with the following other differences: F and G are unchanged on return\&. If G=0, then CS=(+/-)1 and SN=0\&. If F=0 and (G \&.ne\&. 0), then CS=0 and SN=(+/-)1\&. The sign is chosen so that R >= 0\&. .fi .PP .RE .PP \fBParameters\fP .RS 4 \fIF\fP .PP .nf F is REAL The first component of vector to be rotated\&. .fi .PP .br \fIG\fP .PP .nf G is REAL The second component of vector to be rotated\&. .fi .PP .br \fICS\fP .PP .nf CS is REAL The cosine of the rotation\&. .fi .PP .br \fISN\fP .PP .nf SN is REAL The sine of the rotation\&. .fi .PP .br \fIR\fP .PP .nf R is REAL The nonzero component of the rotated vector\&. This version has a few statements commented out for thread safety (machine parameters are computed on each entry)\&. 10 feb 03, SJH\&. .fi .PP .RE .PP \fBAuthor\fP .RS 4 Univ\&. of Tennessee .PP Univ\&. of California Berkeley .PP Univ\&. of Colorado Denver .PP NAG Ltd\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for LAPACK from the source code\&.