113 REAL AYB( n, nrhs ), BERR( nrhs )
114 COMPLEX RES( n, nrhs )
125 INTRINSIC abs,
REAL, AIMAG, MAX
136 cabs1( cdum ) = abs(
REAL( CDUM ) ) + abs( AIMAG( cdum ) )
144 safe1 = slamch(
'Safe minimum' )
150 IF (ayb(i,j) .NE. 0.0)
THEN
151 tmp = (safe1 + cabs1(res(i,j)))/ayb(i,j)
152 berr(j) = max( berr(j), tmp )
subroutine cla_lin_berr(N, NZ, NRHS, RES, AYB, BERR)
CLA_LIN_BERR computes a component-wise relative backward error.
real function slamch(CMACH)
SLAMCH