210 COMPLEX FUNCTION clatm2( M, N, I, J, KL, KU, IDIST, ISEED, D,
211 $ IGRADE, DL, DR, IPVTNG, IWORK, SPARSE )
219 INTEGER i, idist, igrade, ipvtng, j, kl, ku, m, n
225 INTEGER iseed( 4 ), iwork( * )
226 COMPLEX d( * ), dl( * ), dr( * )
234 parameter( czero = ( 0.0e0, 0.0e0 ) )
236 parameter( zero = 0.0e0 )
264 IF( i.LT.1 .OR. i.GT.m .OR. j.LT.1 .OR. j.GT.n )
THEN
271 IF( j.GT.i+ku .OR. j.LT.i-kl )
THEN
278 IF( sparse.GT.zero )
THEN
279 IF(
slaran( iseed ).LT.sparse )
THEN
287 IF( ipvtng.EQ.0 )
THEN
290 ELSE IF( ipvtng.EQ.1 )
THEN
293 ELSE IF( ipvtng.EQ.2 )
THEN
296 ELSE IF( ipvtng.EQ.3 )
THEN
303 IF( isub.EQ.jsub )
THEN
306 ctemp =
clarnd( idist, iseed )
308 IF( igrade.EQ.1 )
THEN
309 ctemp = ctemp*dl( isub )
310 ELSE IF( igrade.EQ.2 )
THEN
311 ctemp = ctemp*dr( jsub )
312 ELSE IF( igrade.EQ.3 )
THEN
313 ctemp = ctemp*dl( isub )*dr( jsub )
314 ELSE IF( igrade.EQ.4 .AND. isub.NE.jsub )
THEN
315 ctemp = ctemp*dl( isub ) / dl( jsub )
316 ELSE IF( igrade.EQ.5 )
THEN
317 ctemp = ctemp*dl( isub )*conjg( dl( jsub ) )
318 ELSE IF( igrade.EQ.6 )
THEN
319 ctemp = ctemp*dl( isub )*dl( jsub )
complex function clarnd(idist, iseed)
CLARND
complex function clatm2(m, n, i, j, kl, ku, idist, iseed, d, igrade, dl, dr, ipvtng, iwork, sparse)
CLATM2
real function slaran(iseed)
SLARAN