(S|D|C|Z)LASR¶
Single, double, single complex, and double complex LASR.
Description¶
Applies a sequence of plane rotations to a rectangular matrix.
When SIDE is L, LASR performs:

When SIDE is R, LASR performs:

The matrix P is an orthogonal matrix formed as the product of plane rotations.
When DIRECT is F:

When DIRECT is B:

Each plane rotation is formed around a pivot.
When PIVOT is T:
![P_k =
\left[
\begin{matrix}
c_k & & & & s_k & & & \\
& 1 & & & & & & \\
& & \ddots & & & & & \\
& & & 1 & & & & \\
-s_k & & & & c_k & & & \\
& & & & & 1 & & \\
& & & & & & \ddots & \\
& & & & & & & 1 \\
\end{matrix}
\right]](../_images/math/44391e7b0bf892d0ac0dcbf843a3029c7cf9030a.png)
When PIVOT is B:
![P_k =
\left[
\begin{matrix}
1 & & & & & & & \\
& \ddots & & & & & & \\
& & 1 & & & & & \\
& & & c_k & & & & s_k \\
& & & & 1 & & & \\
& & & & & \ddots & & \\
& & & & & & 1 & \\
& & & -s_k & & & & c_k \\
\end{matrix}
\right]](../_images/math/5ac7a94f6ecec3b8db5d4451de3b62468b6a672b.png)
When PIVOT is V:
![P_k =
\left[
\begin{matrix}
1 & & & & & & & \\
& \ddots & & & & & & \\
& & 1 & & & & & \\
& & & c_k & s_k & & & \\
& & & -s_k & c_k & & & \\
& & & & & 1 & & \\
& & & & & & \ddots & \\
& & & & & & & 1 \\
\end{matrix}
\right]](../_images/math/d56247bed561c384fdb8f0c7a64d6f3d8c892b4c.png)
LAPACK Interface¶
void slasr(const char *SIDE, const char *PIVOT, const char *DIRECT,
const qml_long *M,const qml_long *N, const float *C, const float *S,
float *A, const qml_long *LDA);
void dlasr(const char *SIDE, const char *PIVOT, const char *DIRECT,
const qml_long *M, const qml_long *N, const double *C, const double *S,
double *A, const qml_long *LDA);
void clasr(const char *SIDE, const char *PIVOT, const char *DIRECT,
const qml_long *M, const qml_long *N, const float *C, const float *S,
qml_single_complex *A, const qml_long *LDA);
void zlasr(const char *SIDE, const char *PIVOT, const char *DIRECT,
const qml_long *M, const qml_long *N, const double *C, const double *S,
qml_double_complex *A, const qml_long *LDA);
Arguments¶
| SIDE | Which side to apply plane rotations to |
| PIVOT | Positions of pivots |
| DIRECT | Direction to apply rotations |
| M | Number of rows of A |
| N | Number of columns of A |
| C | Array of cosine values for plane rotations |
| S | Array of sine values for plane rotations |
| A | Matrix of size M x N |
| LDA | Leading dimension of A |