 LAPACK  3.6.1 LAPACK: Linear Algebra PACKage
 subroutine dlascl2 ( integer M, integer N, double precision, dimension( * ) D, double precision, dimension( ldx, * ) X, integer LDX )

DLASCL2 performs diagonal scaling on a vector.

Purpose:
``` DLASCL2 performs a diagonal scaling on a vector:
x <-- D * x
where the diagonal matrix D is stored as a vector.

Eventually to be replaced by BLAS_dge_diag_scale in the new BLAS
standard.```
Parameters
 [in] M ``` M is INTEGER The number of rows of D and X. M >= 0.``` [in] N ``` N is INTEGER The number of columns of X. N >= 0.``` [in] D ``` D is DOUBLE PRECISION array, length M Diagonal matrix D, stored as a vector of length M.``` [in,out] X ``` X is DOUBLE PRECISION array, dimension (LDX,N) On entry, the vector X to be scaled by D. On exit, the scaled vector.``` [in] LDX ``` LDX is INTEGER The leading dimension of the vector X. LDX >= M.```
Date
June 2016

Definition at line 92 of file dlascl2.f.

92 *
93 * -- LAPACK computational routine (version 3.6.1) --
94 * -- LAPACK is a software package provided by Univ. of Tennessee, --
95 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
96 * June 2016
97 *
98 * .. Scalar Arguments ..
99  INTEGER m, n, ldx
100 * ..
101 * .. Array Arguments ..
102  DOUBLE PRECISION d( * ), x( ldx, * )
103 * ..
104 *
105 * =====================================================================
106 *
107 * .. Local Scalars ..
108  INTEGER i, j
109 * ..
110 * .. Executable Statements ..
111 *
112  DO j = 1, n
113  DO i = 1, m
114  x( i, j ) = x( i, j ) * d( i )
115  END DO
116  END DO
117
118  RETURN

Here is the caller graph for this function: