LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

ROT

ROT[x,y,c,s]

applies a Givens rotation {{c,s},{-Conjugate[s],c}} to the vectors x and y.

Details

  • To use ROT, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
  • The following arguments must be given:
  • xinput/output symbolvector; the symbol value is modified in place
    yinput/output symbolvector; the symbol value is modified in place
    cinput expressionreal-valued scalar
    sinput expressionscalar
  • ROT[x,y,c,s] is equivalent to {x,y}={{c,s},{-Conjugate[s],c}}.{x,y} where x and y are row vectors.
  • The vector arguments must be of the same length.

Examples

open all close all

Basic Examples  (1)

Load the BLAS package:

In[1]:=
Click for copyable input

Apply a Givens rotation to two vectors:

In[2]:=
Click for copyable input
Out[2]=

Scope  (4)

Properties & Relations  (1)

Possible Issues  (4)