scipy.linalg.lapack.ssfrk#
- scipy.linalg.lapack.ssfrk(n, k, alpha, a, beta, c, transr='N', uplo='U', trans='N', overwrite_c=0) = <flapack function ssfrk>#
Symmetric rank-k update of a matrix held in rectangular full packed (RFP) storage (LAPACK
ssfrk).Computes
c := alpha * a @ a.T + beta * cwhen trans is'N', orc := alpha * a.T @ a + beta * cwhen it is'T'.- Parameters:
- nint
Order of the square matrix.
- kint
Inner dimension of the update.
- alphafloat
Scalar the rank-k term is multiplied by. Real for every flavor.
- andarray
Shape
(max(n, 1), k)when trans is'N',(max(k, 1), n)otherwise. The leading dimension follows n and k rather than a, so the row count must match exactly.- betafloat
Scalar c is scaled by before the update. Real for every flavor.
- cndarray
The matrix to update, in RFP storage, length
n * (n + 1) / 2.- transrstr, optional
'N'for the normal RFP layout,'T'for the transposed one. Default is'N'.- uplostr, optional
'U'if c holds the upper triangle,'L'if lower. Default is'U'.- transstr, optional
'N'fora @ a.T,'T'for the transpose product. Default is'N'.- overwrite_cint, optional
If nonzero, c may be overwritten in place. Default is 0.
- Returns:
- coutndarray
The updated matrix in RFP storage, overwriting c.