This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / 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 : int

Order of the square matrix.

k : int

Inner dimension of the update.

alpha : float

Scalar the rank-k term is multiplied by. Real for every flavor.

a : ndarray

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.

beta : float

Scalar c is scaled by before the update. Real for every flavor.

c : ndarray

The 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' if c holds the upper triangle, 'L' if lower. Default is 'U'.

trans : str, optional

'N' for a @ a.conj().T, 'C' for the conjugate transpose product. Default is 'N'.

overwrite_c : int, optional

If nonzero, c may be overwritten in place. Default is 0.

Returns

cout : ndarray

The updated matrix in RFP storage, overwriting c.

Aliases

  • scipy.linalg._flapack.chfrk