104 SUBROUTINE dlasdt( N, LVL, ND, INODE, NDIML, NDIMR, MSUB )
111 INTEGER LVL, MSUB, N, ND
114 INTEGER INODE( * ), NDIML( * ), NDIMR( * )
121 parameter( two = 2.0d+0 )
124 INTEGER I, IL, IR, LLST, MAXN, NCRNT, NLVL
125 DOUBLE PRECISION TEMP
128 INTRINSIC dble, int, log, max
135 temp = log( dble( maxn ) / dble( msub+1 ) ) / log( two )
136 lvl = int( temp ) + 1
141 ndimr( 1 ) = n - i - 1
145 DO 20 nlvl = 1, lvl - 1
150 DO 10 i = 0, llst - 1
154 ndiml( il ) = ndiml( ncrnt ) / 2
155 ndimr( il ) = ndiml( ncrnt ) - ndiml( il ) - 1
156 inode( il ) = inode( ncrnt ) - ndimr( il ) - 1
157 ndiml( ir ) = ndimr( ncrnt ) / 2
158 ndimr( ir ) = ndimr( ncrnt ) - ndiml( ir ) - 1
159 inode( ir ) = inode( ncrnt ) + ndiml( ir ) + 1
subroutine dlasdt(n, lvl, nd, inode, ndiml, ndimr, msub)
DLASDT creates a tree of subproblems for bidiagonal divide and conquer. Used by sbdsdc.