358 REAL work( * ), x( ldx, * )
361 parameter ( one = 1.0e0, zero = 0.0e0 )
365 r = min( p, m-p, q, m-q )
367 CALL slaset(
'Full', m, m, zero, zero, x, ldx )
373 x(min(p,q)-r+i,min(p,q)-r+i) = cos(theta(i))
375 DO i = 1, min(p,m-q)-r
376 x(p-i+1,m-i+1) = -one
379 x(p-(min(p,m-q)-r)+1-i,m-(min(p,m-q)-r)+1-i) =
382 DO i = 1, min(m-p,q)-r
386 x(m-(min(m-p,q)-r)+1-i,q-(min(m-p,q)-r)+1-i) =
389 DO i = 1, min(m-p,m-q)-r
393 x(p+(min(m-p,m-q)-r)+i,q+(min(m-p,m-q)-r)+i) =
396 CALL slaror(
'Left',
'No init', p, m, x, ldx, iseed, work, info )
397 CALL slaror(
'Left',
'No init', m-p, m, x(p+1,1), ldx,
398 $ iseed, work, info )
399 CALL slaror(
'Right',
'No init', m, q, x, ldx, iseed,
401 CALL slaror(
'Right',
'No init', m, m-q,
402 $ x(1,q+1), ldx, iseed, work, info )
subroutine slaror(SIDE, INIT, M, N, A, LDA, ISEED, X, INFO)
SLAROR
subroutine slaset(UPLO, M, N, ALPHA, BETA, A, LDA)
SLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values...