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

◆ pzerrscal()

subroutine pzerrscal ( double precision  errbnd,
complex*16  psclr,
complex*16  x,
double precision  prec 
)

Definition at line 3640 of file pzblas1tst.f.

3641*
3642* -- PBLAS test routine (version 2.0) --
3643* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
3644* and University of California, Berkeley.
3645* April 1, 1998
3646*
3647* .. Scalar Arguments ..
3648 DOUBLE PRECISION ERRBND, PREC
3649 COMPLEX*16 PSCLR, X
3650* ..
3651*
3652* Purpose
3653* =======
3654*
3655* PZERRSCAL serially computes the product PSCLR * X and returns a sca-
3656* led relative acceptable error bound on the result.
3657*
3658* Notes
3659* =====
3660*
3661* If s1 = PSCLR*X and s2 are two different computed results, and s1 is
3662* being assumed to be correct, we require
3663*
3664* abs( s1 - s2 ) <= ERRBND = ERRFACT * abs( s1 ),
3665*
3666* where ERRFACT is computed as two times the machine precision.
3667*
3668* Arguments
3669* =========
3670*
3671* ERRBND (global output) DOUBLE PRECISION
3672* On exit, ERRBND specifies the scaled relative acceptable er-
3673* ror bound.
3674*
3675* PSCLR (global input) COMPLEX*16
3676* On entry, PSCLR specifies the scale factor.
3677*
3678* X (global input/global output) COMPLEX*16
3679* On entry, X specifies the scalar to be scaled. On exit, X is
3680* the scaled entry.
3681*
3682* PREC (global input) DOUBLE PRECISION
3683* On entry, PREC specifies the machine precision.
3684*
3685* -- Written on April 1, 1998 by
3686* Antoine Petitet, University of Tennessee, Knoxville 37996, USA.
3687*
3688* =====================================================================
3689*
3690* .. Parameters ..
3691 DOUBLE PRECISION TWO
3692 parameter( two = 2.0d+0 )
3693* ..
3694* .. Intrinsic Functions ..
3695 INTRINSIC abs
3696* ..
3697* .. Executable Statements ..
3698*
3699 x = psclr * x
3700*
3701 errbnd = ( two * prec ) * abs( x )
3702*
3703 RETURN
3704*
3705* End of PZERRSCAL
3706*
Here is the caller graph for this function: