stdlib_srotmg Subroutine

public pure subroutine stdlib_srotmg(sd1, sd2, sx1, sy1, sparam)

SROTMG Constructs the modified Givens transformation matrix which zeros the second component of the 2-vector With SPARAM(1)=SFLAG, has one of the following forms:
Locations 2-4 of SPARAM contain SH11, SH21, SH12 and SH22 respectively. (Values of 1.0, -1.0, or 0.0 implied by the value of SPARAM(1) are not stored in SPARAM.) The values of parameters GAMSQ and RGAMSQ may be inexact. This is OK as they are only used for testing the size of DD1 and DD2. All actual scaling of data is done using GAM.

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(inout) :: sd1
real(kind=sp), intent(inout) :: sd2
real(kind=sp), intent(inout) :: sx1
real(kind=sp), intent(in) :: sy1
real(kind=sp), intent(out) :: sparam(5)