Contents

cblas_srotg(_:_:_:_:)

Constructs a Givens rotation matrix.

Declaration

func cblas_srotg(_ A: UnsafeMutablePointer<Float>, _ B: UnsafeMutablePointer<Float>, _ C: UnsafeMutablePointer<Float>, _ S: UnsafeMutablePointer<Float>)

Parameters

  • A:

    Single-precision value a. Overwritten on return with result r.

  • B:

    Single-precision value b. Overwritten on return with result z (zero).

  • C:

    Unused on entry. Overwritten on return with the value cos(θ).

  • S:

    Unused on entry. Overwritten on return with the value sin(θ).

Discussion

Given a vertical matrix containing a and b, computes the values of cos θ and sin θ that zero the lower value (b). Returns the value of sin θ in s, the value of cos θ in c, and the upper value (r) in a.

See Also

Single-precision float matrix functions