SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ pzderrscal()

subroutine pzderrscal ( double precision  errbnd,
double precision  pusclr,
complex*16  x,
double precision  prec 
)

Definition at line 3708 of file pzblas1tst.f.

3709*
3710* -- PBLAS test routine (version 2.0) --
3711* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
3712* and University of California, Berkeley.
3713* April 1, 1998
3714*
3715* .. Scalar Arguments ..
3716 DOUBLE PRECISION ERRBND, PREC, PUSCLR
3717 COMPLEX*16 X
3718* ..
3719*
3720* Purpose
3721* =======
3722*
3723* PZDERRSCAL serially computes the product PUSCLR * X and returns a
3724* scaled relative acceptable error bound on the result.
3725*
3726* Notes
3727* =====
3728*
3729* If s1 = PUSCLR*X and s2 are two different computed results, and s1 is
3730* being assumed to be correct, we require
3731*
3732* abs( s1 - s2 ) <= ERRBND = ERRFACT * abs( s1 ),
3733*
3734* where ERRFACT is computed as two times the machine precision.
3735*
3736* Arguments
3737* =========
3738*
3739* ERRBND (global output) DOUBLE PRECISION
3740* On exit, ERRBND specifies the scaled relative acceptable er-
3741* ror bound.
3742*
3743* PUSCLR (global input) DOUBLE PRECISION
3744* On entry, PUSCLR specifies the real scale factor.
3745*
3746* X (global input/global output) COMPLEX*16
3747* On entry, X specifies the scalar to be scaled. On exit, X is
3748* the scaled entry.
3749*
3750* PREC (global input) DOUBLE PRECISION
3751* On entry, PREC specifies the machine precision.
3752*
3753* -- Written on April 1, 1998 by
3754* Antoine Petitet, University of Tennessee, Knoxville 37996, USA.
3755*
3756* =====================================================================
3757*
3758* .. Parameters ..
3759 DOUBLE PRECISION TWO
3760 parameter( two = 2.0d+0 )
3761* ..
3762* .. Intrinsic Functions ..
3763 INTRINSIC abs, dble, dcmplx, dimag
3764* ..
3765* .. Executable Statements ..
3766*
3767 x = dcmplx( pusclr * dble( x ), pusclr * dimag( x ) )
3768*
3769 errbnd = ( two * prec ) * abs( x )
3770*
3771 RETURN
3772*
3773* End of PZDERRSCAL
3774*
Here is the caller graph for this function: