[go: up one dir, main page]

ger

Function ger 

Source
pub unsafe fn ger(
    m: usize,
    n: usize,
    alpha: f64,
    x: *const f64,
    y: *const f64,
    ldy: usize,
    a: *mut f64,
    lda: usize,
)
Expand description

Performs a general rank-1 update operation on a matrix.

$A := \alpha \cdot x \cdot y^T + A$ of length n, and alpha is a scalar. This operation adds the outer product of vectors x and y (scaled by alpha) to the matrix A.

ยงArguments

  • m - The number of rows of the matrix A, and the length of vector x.
  • n - The number of columns of the matrix A, and the number of elements in vector y.
  • alpha - The scalar multiplier alpha.
  • x - A raw constant pointer to the first element of the vector x. Assumed to have a stride of 1.
  • y - A raw constant pointer to the first element of the vector y.
  • ldy - The stride between consecutive elements of the vector y.
  • a - A raw mutable pointer to the first element of the matrix A (in column-major order).
  • lda - The leading dimension of the matrix A, i.e., the stride between consecutive columns.