larfx#

Functions

void slarfx(
    const char*          side,
    const INT            m,
    const INT            n,
    const f32*  restrict v,
    const f32            tau,
          f32*  restrict C,
    const INT            ldc,
          f32*  restrict work
);
void slarfx(const char *side, const INT m, const INT n, const f32 *restrict v, const f32 tau, f32 *restrict C, const INT ldc, f32 *restrict work)#

SLARFX applies a real elementary reflector H to a real m by n matrix C, from either the left or the right.

H is represented in the form

  H = I - tau * v * v**T
where tau is a real scalar and v is a real vector.

If tau = 0, then H is taken to be the unit matrix.

This version uses inline code if H has order < 11.

Parameters

in
side

‘L’: form H * C; ‘R’: form C * H

in
m

The number of rows of the matrix C.

in
n

The number of columns of the matrix C.

in
v

The vector v in the representation of H. Dimension (m) if side = “L”, or (n) if side = ‘R’.

in
tau

The value tau in the representation of H.

inout
C

Double precision array, dimension (ldc, n). On entry, the m by n matrix C. On exit, C is overwritten by H * C if side = “L”, or C * H if side = ‘R’.

in
ldc

The leading dimension of the array C. ldc >= max(1, m).

out
work

Double precision array, dimension (n) if side = “L”, or (m) if side = ‘R’. Not referenced if H has order < 11.

Functions

void dlarfx(
    const char*          side,
    const INT            m,
    const INT            n,
    const f64*  restrict v,
    const f64            tau,
          f64*  restrict C,
    const INT            ldc,
          f64*  restrict work
);
void dlarfx(const char *side, const INT m, const INT n, const f64 *restrict v, const f64 tau, f64 *restrict C, const INT ldc, f64 *restrict work)#

DLARFX applies a real elementary reflector H to a real m by n matrix C, from either the left or the right.

H is represented in the form

  H = I - tau * v * v**T
where tau is a real scalar and v is a real vector.

If tau = 0, then H is taken to be the unit matrix.

This version uses inline code if H has order < 11.

Parameters

in
side

‘L’: form H * C; ‘R’: form C * H

in
m

The number of rows of the matrix C.

in
n

The number of columns of the matrix C.

in
v

The vector v in the representation of H. Dimension (m) if side = “L”, or (n) if side = ‘R’.

in
tau

The value tau in the representation of H.

inout
C

Double precision array, dimension (ldc, n). On entry, the m by n matrix C. On exit, C is overwritten by H * C if side = “L”, or C * H if side = ‘R’.

in
ldc

The leading dimension of the array C. ldc >= max(1, m).

out
work

Double precision array, dimension (n) if side = “L”, or (m) if side = ‘R’. Not referenced if H has order < 11.

Functions

void clarfx(
    const char*          side,
    const INT            m,
    const INT            n,
    const c64*  restrict v,
    const c64            tau,
          c64*  restrict C,
    const INT            ldc,
          c64*  restrict work
);
void clarfx(const char *side, const INT m, const INT n, const c64 *restrict v, const c64 tau, c64 *restrict C, const INT ldc, c64 *restrict work)#

CLARFX applies a complex elementary reflector H to a complex m by n matrix C, from either the left or the right.

H is represented in the form

  H = I - tau * v * v**H
where tau is a complex scalar and v is a complex vector.

If tau = 0, then H is taken to be the unit matrix.

This version uses inline code if H has order < 11.

Parameters

in
side

‘L’: form H * C; ‘R’: form C * H

in
m

The number of rows of the matrix C.

in
n

The number of columns of the matrix C.

in
v

The vector v in the representation of H. Dimension (m) if side = “L”, or (n) if side = ‘R’.

in
tau

The value tau in the representation of H.

inout
C

Complex array, dimension (ldc, n). On entry, the m by n matrix C. On exit, C is overwritten by H * C if side = “L”, or C * H if side = ‘R’.

in
ldc

The leading dimension of the array C. ldc >= max(1, m).

out
work

Complex array, dimension (n) if side = “L”, or (m) if side = ‘R’. Not referenced if H has order < 11.

Functions

void zlarfx(
    const char*          side,
    const INT            m,
    const INT            n,
    const c128* restrict v,
    const c128           tau,
          c128* restrict C,
    const INT            ldc,
          c128* restrict work
);
void zlarfx(const char *side, const INT m, const INT n, const c128 *restrict v, const c128 tau, c128 *restrict C, const INT ldc, c128 *restrict work)#

ZLARFX applies a complex elementary reflector H to a complex m by n matrix C, from either the left or the right.

H is represented in the form

  H = I - tau * v * v**H
where tau is a complex scalar and v is a complex vector.

If tau = 0, then H is taken to be the unit matrix.

This version uses inline code if H has order < 11.

Parameters

in
side

‘L’: form H * C; ‘R’: form C * H

in
m

The number of rows of the matrix C.

in
n

The number of columns of the matrix C.

in
v

The vector v in the representation of H. Dimension (m) if side = “L”, or (n) if side = ‘R’.

in
tau

The value tau in the representation of H.

inout
C

Complex array, dimension (ldc, n). On entry, the m by n matrix C. On exit, C is overwritten by H * C if side = “L”, or C * H if side = ‘R’.

in
ldc

The leading dimension of the array C. ldc >= max(1, m).

out
work

Complex array, dimension (n) if side = “L”, or (m) if side = ‘R’. Not referenced if H has order < 11.