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

◆ pcerrscal()

subroutine pcerrscal ( real  errbnd,
complex  psclr,
complex  x,
real  prec 
)

Definition at line 3641 of file pcblas1tst.f.

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