Contents

cblas_drotg(_:_:_:_:)

Constructs a Givens rotation matrix.

Declaration

func cblas_drotg(_ A: UnsafeMutablePointer<Double>, _ B: UnsafeMutablePointer<Double>, _ C: UnsafeMutablePointer<Double>, _ S: UnsafeMutablePointer<Double>)

Parameters

  • A:

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

  • B:

    Double-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

Double-precision float matrix functions