115 SUBROUTINE dlaptm( N, NRHS, ALPHA, D, E, X, LDX, BETA, B, LDB )
122 INTEGER LDB, LDX, N, NRHS
123 DOUBLE PRECISION ALPHA, BETA
126 DOUBLE PRECISION B( LDB, * ), D( * ), E( * ), X( LDX, * )
132 DOUBLE PRECISION ONE, ZERO
133 parameter( one = 1.0d+0, zero = 0.0d+0 )
145 IF( beta.EQ.zero )
THEN
151 ELSE IF( beta.EQ.-one )
THEN
154 b( i, j ) = -b( i, j )
159 IF( alpha.EQ.one )
THEN
165 b( 1, j ) = b( 1, j ) + d( 1 )*x( 1, j )
167 b( 1, j ) = b( 1, j ) + d( 1 )*x( 1, j ) +
169 b( n, j ) = b( n, j ) + e( n-1 )*x( n-1, j ) +
172 b( i, j ) = b( i, j ) + e( i-1 )*x( i-1, j ) +
173 $ d( i )*x( i, j ) + e( i )*x( i+1, j )
177 ELSE IF( alpha.EQ.-one )
THEN
183 b( 1, j ) = b( 1, j ) - d( 1 )*x( 1, j )
185 b( 1, j ) = b( 1, j ) - d( 1 )*x( 1, j ) -
187 b( n, j ) = b( n, j ) - e( n-1 )*x( n-1, j ) -
190 b( i, j ) = b( i, j ) - e( i-1 )*x( i-1, j ) -
191 $ d( i )*x( i, j ) - e( i )*x( i+1, j )
subroutine dlaptm(n, nrhs, alpha, d, e, x, ldx, beta, b, ldb)
DLAPTM