Function rgsl::blas::level3::cher2k

source ·
pub fn cher2k(
    uplo: Uplo,
    trans: Transpose,
    alpha: &ComplexF32,
    A: &MatrixComplexF32,
    B: &MatrixComplexF32,
    beta: f32,
    C: &mut MatrixComplexF32
) -> Value
Expand description

This function computes a rank-2k update of the hermitian matrix C, C = \alpha A B^H + \alpha^* B A^H + \beta C when Trans is NoTrans and C = \alpha A^H B + \alpha^* B^H A + \beta C when Trans is ConjTrans. Since the matrix C is hermitian only its upper half or lower half need to be stored. When Uplo is Upper then the upper triangle and diagonal of C are used, and when Uplo is Lower then the lower triangle and diagonal of C are used. The imaginary elements of the diagonal are automatically set to zero.