1DLASCL2(1) LAPACK routine (version 3.2) DLASCL2(1)
2
3
4
6 DLASCL2 - performs a diagonal scaling on a vector
7
9 SUBROUTINE DLASCL2 ( M, N, D, X, LDX )
10
11 IMPLICIT NONE
12
13 INTEGER M, N, LDX
14
15 DOUBLE PRECISION D( * ), X( LDX, * )
16
18 DLASCL2 performs a diagonal scaling on a vector:
19 x <-- D * x
20 where the diagonal matrix D is stored as a vector.
21 Eventually to be replaced by BLAS_sge_diag_scale in the new BLAS stan‐
22 dard.
23
25 N (input) INTEGER
26 The size of the vectors X and D.
27
28 D (input) DOUBLE PRECISION array, length N
29 Diagonal matrix D, stored as a vector of length N.
30
31 X (input/output) DOUBLE PRECISION array, length N
32 On entry, the vector X to be scaled by D. On exit, the scaled
33 vector.
34
35
36
37 LAPACK routine (version 3.2) November 2008 DLASCL2(1)