[go: up one dir, main page]

syrk

Function syrk 

Source
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 (if trans = ‘N’)
  • C := alpha * A^T * A + beta * C (if trans = ‘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 of C is to be referenced.
  • trans - Specifies the operation: ‘N’ for A * A^T or ‘T’ for A^T * A.
  • n - The order of the matrix C.
  • k - The number of columns of A if trans is ‘N’, or rows of A if trans is ‘T’.
  • alpha - The scalar multiplier alpha.
  • a - A raw constant pointer to the first element of matrix A.
  • lda - The leading dimension of A.
  • beta - The scalar multiplier beta.
  • c - A raw mutable pointer to the first element of the symmetric matrix C.
  • ldc - The leading dimension of C.