pub unsafe fn syrk(
uplo: char,
trans: char,
n: usize,
k: usize,
alpha: f64,
a: *const f64,
lda: usize,
beta: f64,
c: *mut f64,
ldc: usize,
)
Expand description
Performs a symmetric rank-k update on a matrix.
C := alpha * A * A^T + beta * C
(iftrans
= ‘N’)C := alpha * A^T * A + beta * C
(iftrans
= ‘T’)
Where C
is an N-by-N symmetric matrix, A
is a matrix, and alpha
and
beta
are scalars. Only the specified uplo
triangle of C
is updated.
§Arguments
uplo
- Specifies whether the upper (‘U’) or lower (‘L’) triangular part ofC
is to be referenced.trans
- Specifies the operation: ‘N’ forA * A^T
or ‘T’ forA^T * A
.n
- The order of the matrixC
.k
- The number of columns ofA
iftrans
is ‘N’, or rows ofA
iftrans
is ‘T’.alpha
- The scalar multiplieralpha
.a
- A raw constant pointer to the first element of matrixA
.lda
- The leading dimension ofA
.beta
- The scalar multiplierbeta
.c
- A raw mutable pointer to the first element of the symmetric matrixC
.ldc
- The leading dimension ofC
.