Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 6/24/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

?larscl2

Performs reciprocal diagonal scaling on a vector.

Syntax

call slarscl2(m, n, d, x, ldx)

call dlarscl2(m, n, d, x, ldx)

call clarscl2(m, n, d, x, ldx)

call zlarscl2(m, n, d, x, ldx)

Include Files

  • mkl.fi

Description

The ?larscl2 routines perform reciprocal diagonal scaling on a vector

x := D-1*x,

where:

x is a vector, and

D is a diagonal matrix.

Input Parameters

m

INTEGER. Specifies the number of rows of the matrix D and the number of elements of the vector x. The value of m must be at least zero.

n

INTEGER. The number of columns of D and x. The value of n must be at least zero.

d

REAL for slarscl2 and clarscl2.

DOUBLE PRECISION for dlarscl2 and zlarscl2.

Array, DIMENSIONm. Diagonal matrix D stored as a vector of length m.

x

REAL for slarscl2.

DOUBLE PRECISION for dlarscl2.

COMPLEX for clarscl2.

DOUBLE COMPLEX for zlarscl2.

Array, DIMENSION(ldx,n). The vector x to scale by D.

ldx

INTEGER.

The leading dimension of the vector x. The value of ldx must be at least zero.

Output Parameters

x

Scaled vector x.