Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 3/22/2024
Public
Document Table of Contents

?lascl2

Performs diagonal scaling on a vector.

Syntax

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

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

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

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

Include Files

  • mkl.fi

Description

The ?lascl2 routines perform diagonal scaling on a vector

x := D*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 slascl2 and clascl2.

DOUBLE PRECISION for dlascl2 and zlascl2.

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

x

REAL for slascl2.

DOUBLE PRECISION for dlascl2.

COMPLEX for clascl2.

DOUBLE COMPLEX for zlascl2.

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.