357 DOUBLE PRECISION theta( * )
358 DOUBLE PRECISION work( * ), x( ldx, * )
360 DOUBLE PRECISION one, zero
361 parameter ( one = 1.0d0, zero = 0.0d0 )
365 r = min( p, m-p, q, m-q )
367 CALL dlaset(
'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 dlaror(
'Left',
'No init', p, m, x, ldx, iseed, work, info )
397 CALL dlaror(
'Left',
'No init', m-p, m, x(p+1,1), ldx,
398 $ iseed, work, info )
399 CALL dlaror(
'Right',
'No init', m, q, x, ldx, iseed,
401 CALL dlaror(
'Right',
'No init', m, m-q,
402 $ x(1,q+1), ldx, iseed, work, info )
subroutine dlaset(UPLO, M, N, ALPHA, BETA, A, LDA)
DLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values...
subroutine dlaror(SIDE, INIT, M, N, A, LDA, ISEED, X, INFO)
DLAROR