106 SUBROUTINE slasdt( N, LVL, ND, INODE, NDIML, NDIMR, MSUB )
114 INTEGER LVL, MSUB, N, ND
117 INTEGER INODE( * ), NDIML( * ), NDIMR( * )
124 parameter ( two = 2.0e+0 )
127 INTEGER I, IL, IR, LLST, MAXN, NCRNT, NLVL
131 INTRINSIC int, log, max, real
138 temp = log(
REAL( MAXN ) /
REAL( MSUB+1 ) ) / log( TWO )
139 lvl = int( temp ) + 1
144 ndimr( 1 ) = n - i - 1
148 DO 20 nlvl = 1, lvl - 1
153 DO 10 i = 0, llst - 1
157 ndiml( il ) = ndiml( ncrnt ) / 2
158 ndimr( il ) = ndiml( ncrnt ) - ndiml( il ) - 1
159 inode( il ) = inode( ncrnt ) - ndimr( il ) - 1
160 ndiml( ir ) = ndimr( ncrnt ) / 2
161 ndimr( ir ) = ndimr( ncrnt ) - ndiml( ir ) - 1
162 inode( ir ) = inode( ncrnt ) + ndiml( ir ) + 1
subroutine slasdt(N, LVL, ND, INODE, NDIML, NDIMR, MSUB)
SLASDT creates a tree of subproblems for bidiagonal divide and conquer. Used by sbdsdc.