[go: up one dir, main page]

laswp

Function laswp 

Source
pub unsafe fn laswp(
    n: usize,
    a: &mut [f64],
    lda: usize,
    k1: i32,
    k2: i32,
    ipiv: &[i32],
    incx: i32,
)
Expand description

Performs a series of row interchanges on a matrix.

§Arguments

  • n - The number of columns of the matrix A to which the interchanges will be applied.
  • a - A mutable slice representing the matrix A in column-major order.
  • lda - The leading dimension of A, i.e., the stride between consecutive columns.
  • k1 - The first element of ipiv to be used for interchanges (0-based).
  • k2 - The last element of ipiv to be used for interchanges (0-based).
  • ipiv - The slice containing the pivot indices. For i in k1..=k2, row i is swapped with row ipiv[i].
  • incx - The increment between successive values of ipiv. If incx is positive, the loop is forward; if negative, it’s backward. If zero, no swaps are performed.