bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / chfrk
lapack_function
scipy.linalg._flapack:chfrk
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def chfrk(n, k, alpha, a, beta, c, transr = N, uplo = U, trans = N, overwrite_c = 0)Summary
Hermitian rank-k update of a matrix held in rectangular full packed (RFP) storage (LAPACK chfrk).
Extended Summary
Computes c := alpha * a @ a.conj().T + beta * c when trans is 'N', or c := alpha * a.conj().T @ a + beta * c when it is 'C'.
Parameters
n: intOrder of the square matrix.
k: intInner dimension of the update.
alpha: floatScalar the rank-k term is multiplied by. Real for every flavor.
a: ndarrayShape
(max(n, 1), k)whentransis'N',(max(k, 1), n)otherwise. The leading dimension followsnandkrather thana, so the row count must match exactly.beta: floatScalar
cis scaled by before the update. Real for every flavor.c: ndarrayThe matrix to update, in RFP storage, length
n * (n + 1) / 2.transr: str, optional'N'for the normal RFP layout,'C'for the transposed one. Default is'N'.uplo: str, optional'U'ifcholds the upper triangle,'L'if lower. Default is'U'.trans: str, optional'N'fora @ a.conj().T,'C'for the conjugate transpose product. Default is'N'.overwrite_c: int, optionalIf nonzero,
cmay be overwritten in place. Default is 0.
Returns
cout: ndarrayThe updated matrix in RFP storage, overwriting
c.
Aliases
scipy.linalg._flapack.chfrk