00001 SUBROUTINE STFSM( TRANSR, SIDE, UPLO, TRANS, DIAG, M, N, ALPHA, A,
00002 + B, LDB )
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 CHARACTER TRANSR, DIAG, SIDE, TRANS, UPLO
00015 INTEGER LDB, M, N
00016 REAL ALPHA
00017
00018
00019 REAL A( 0: * ), B( 0: LDB-1, 0: * )
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220 REAL ONE, ZERO
00221 PARAMETER ( ONE = 1.0E+0, ZERO = 0.0E+0 )
00222
00223
00224 LOGICAL LOWER, LSIDE, MISODD, NISODD, NORMALTRANSR,
00225 + NOTRANS
00226 INTEGER M1, M2, N1, N2, K, INFO, I, J
00227
00228
00229 LOGICAL LSAME
00230 EXTERNAL LSAME
00231
00232
00233 EXTERNAL SGEMM, STRSM, XERBLA
00234
00235
00236 INTRINSIC MAX, MOD
00237
00238
00239
00240
00241
00242 INFO = 0
00243 NORMALTRANSR = LSAME( TRANSR, 'N' )
00244 LSIDE = LSAME( SIDE, 'L' )
00245 LOWER = LSAME( UPLO, 'L' )
00246 NOTRANS = LSAME( TRANS, 'N' )
00247 IF( .NOT.NORMALTRANSR .AND. .NOT.LSAME( TRANSR, 'T' ) ) THEN
00248 INFO = -1
00249 ELSE IF( .NOT.LSIDE .AND. .NOT.LSAME( SIDE, 'R' ) ) THEN
00250 INFO = -2
00251 ELSE IF( .NOT.LOWER .AND. .NOT.LSAME( UPLO, 'U' ) ) THEN
00252 INFO = -3
00253 ELSE IF( .NOT.NOTRANS .AND. .NOT.LSAME( TRANS, 'T' ) ) THEN
00254 INFO = -4
00255 ELSE IF( .NOT.LSAME( DIAG, 'N' ) .AND. .NOT.LSAME( DIAG, 'U' ) )
00256 + THEN
00257 INFO = -5
00258 ELSE IF( M.LT.0 ) THEN
00259 INFO = -6
00260 ELSE IF( N.LT.0 ) THEN
00261 INFO = -7
00262 ELSE IF( LDB.LT.MAX( 1, M ) ) THEN
00263 INFO = -11
00264 END IF
00265 IF( INFO.NE.0 ) THEN
00266 CALL XERBLA( 'STFSM ', -INFO )
00267 RETURN
00268 END IF
00269
00270
00271
00272 IF( ( M.EQ.0 ) .OR. ( N.EQ.0 ) )
00273 + RETURN
00274
00275
00276
00277 IF( ALPHA.EQ.ZERO ) THEN
00278 DO 20 J = 0, N - 1
00279 DO 10 I = 0, M - 1
00280 B( I, J ) = ZERO
00281 10 CONTINUE
00282 20 CONTINUE
00283 RETURN
00284 END IF
00285
00286 IF( LSIDE ) THEN
00287
00288
00289
00290
00291
00292
00293
00294 IF( MOD( M, 2 ).EQ.0 ) THEN
00295 MISODD = .FALSE.
00296 K = M / 2
00297 ELSE
00298 MISODD = .TRUE.
00299 IF( LOWER ) THEN
00300 M2 = M / 2
00301 M1 = M - M2
00302 ELSE
00303 M1 = M / 2
00304 M2 = M - M1
00305 END IF
00306 END IF
00307
00308 IF( MISODD ) THEN
00309
00310
00311
00312 IF( NORMALTRANSR ) THEN
00313
00314
00315
00316 IF( LOWER ) THEN
00317
00318
00319
00320 IF( NOTRANS ) THEN
00321
00322
00323
00324
00325 IF( M.EQ.1 ) THEN
00326 CALL STRSM( 'L', 'L', 'N', DIAG, M1, N, ALPHA,
00327 + A, M, B, LDB )
00328 ELSE
00329 CALL STRSM( 'L', 'L', 'N', DIAG, M1, N, ALPHA,
00330 + A( 0 ), M, B, LDB )
00331 CALL SGEMM( 'N', 'N', M2, N, M1, -ONE, A( M1 ),
00332 + M, B, LDB, ALPHA, B( M1, 0 ), LDB )
00333 CALL STRSM( 'L', 'U', 'T', DIAG, M2, N, ONE,
00334 + A( M ), M, B( M1, 0 ), LDB )
00335 END IF
00336
00337 ELSE
00338
00339
00340
00341
00342 IF( M.EQ.1 ) THEN
00343 CALL STRSM( 'L', 'L', 'T', DIAG, M1, N, ALPHA,
00344 + A( 0 ), M, B, LDB )
00345 ELSE
00346 CALL STRSM( 'L', 'U', 'N', DIAG, M2, N, ALPHA,
00347 + A( M ), M, B( M1, 0 ), LDB )
00348 CALL SGEMM( 'T', 'N', M1, N, M2, -ONE, A( M1 ),
00349 + M, B( M1, 0 ), LDB, ALPHA, B, LDB )
00350 CALL STRSM( 'L', 'L', 'T', DIAG, M1, N, ONE,
00351 + A( 0 ), M, B, LDB )
00352 END IF
00353
00354 END IF
00355
00356 ELSE
00357
00358
00359
00360 IF( .NOT.NOTRANS ) THEN
00361
00362
00363
00364
00365 CALL STRSM( 'L', 'L', 'N', DIAG, M1, N, ALPHA,
00366 + A( M2 ), M, B, LDB )
00367 CALL SGEMM( 'T', 'N', M2, N, M1, -ONE, A( 0 ), M,
00368 + B, LDB, ALPHA, B( M1, 0 ), LDB )
00369 CALL STRSM( 'L', 'U', 'T', DIAG, M2, N, ONE,
00370 + A( M1 ), M, B( M1, 0 ), LDB )
00371
00372 ELSE
00373
00374
00375
00376
00377 CALL STRSM( 'L', 'U', 'N', DIAG, M2, N, ALPHA,
00378 + A( M1 ), M, B( M1, 0 ), LDB )
00379 CALL SGEMM( 'N', 'N', M1, N, M2, -ONE, A( 0 ), M,
00380 + B( M1, 0 ), LDB, ALPHA, B, LDB )
00381 CALL STRSM( 'L', 'L', 'T', DIAG, M1, N, ONE,
00382 + A( M2 ), M, B, LDB )
00383
00384 END IF
00385
00386 END IF
00387
00388 ELSE
00389
00390
00391
00392 IF( LOWER ) THEN
00393
00394
00395
00396 IF( NOTRANS ) THEN
00397
00398
00399
00400
00401 IF( M.EQ.1 ) THEN
00402 CALL STRSM( 'L', 'U', 'T', DIAG, M1, N, ALPHA,
00403 + A( 0 ), M1, B, LDB )
00404 ELSE
00405 CALL STRSM( 'L', 'U', 'T', DIAG, M1, N, ALPHA,
00406 + A( 0 ), M1, B, LDB )
00407 CALL SGEMM( 'T', 'N', M2, N, M1, -ONE,
00408 + A( M1*M1 ), M1, B, LDB, ALPHA,
00409 + B( M1, 0 ), LDB )
00410 CALL STRSM( 'L', 'L', 'N', DIAG, M2, N, ONE,
00411 + A( 1 ), M1, B( M1, 0 ), LDB )
00412 END IF
00413
00414 ELSE
00415
00416
00417
00418
00419 IF( M.EQ.1 ) THEN
00420 CALL STRSM( 'L', 'U', 'N', DIAG, M1, N, ALPHA,
00421 + A( 0 ), M1, B, LDB )
00422 ELSE
00423 CALL STRSM( 'L', 'L', 'T', DIAG, M2, N, ALPHA,
00424 + A( 1 ), M1, B( M1, 0 ), LDB )
00425 CALL SGEMM( 'N', 'N', M1, N, M2, -ONE,
00426 + A( M1*M1 ), M1, B( M1, 0 ), LDB,
00427 + ALPHA, B, LDB )
00428 CALL STRSM( 'L', 'U', 'N', DIAG, M1, N, ONE,
00429 + A( 0 ), M1, B, LDB )
00430 END IF
00431
00432 END IF
00433
00434 ELSE
00435
00436
00437
00438 IF( .NOT.NOTRANS ) THEN
00439
00440
00441
00442
00443 CALL STRSM( 'L', 'U', 'T', DIAG, M1, N, ALPHA,
00444 + A( M2*M2 ), M2, B, LDB )
00445 CALL SGEMM( 'N', 'N', M2, N, M1, -ONE, A( 0 ), M2,
00446 + B, LDB, ALPHA, B( M1, 0 ), LDB )
00447 CALL STRSM( 'L', 'L', 'N', DIAG, M2, N, ONE,
00448 + A( M1*M2 ), M2, B( M1, 0 ), LDB )
00449
00450 ELSE
00451
00452
00453
00454
00455 CALL STRSM( 'L', 'L', 'T', DIAG, M2, N, ALPHA,
00456 + A( M1*M2 ), M2, B( M1, 0 ), LDB )
00457 CALL SGEMM( 'T', 'N', M1, N, M2, -ONE, A( 0 ), M2,
00458 + B( M1, 0 ), LDB, ALPHA, B, LDB )
00459 CALL STRSM( 'L', 'U', 'N', DIAG, M1, N, ONE,
00460 + A( M2*M2 ), M2, B, LDB )
00461
00462 END IF
00463
00464 END IF
00465
00466 END IF
00467
00468 ELSE
00469
00470
00471
00472 IF( NORMALTRANSR ) THEN
00473
00474
00475
00476 IF( LOWER ) THEN
00477
00478
00479
00480 IF( NOTRANS ) THEN
00481
00482
00483
00484
00485 CALL STRSM( 'L', 'L', 'N', DIAG, K, N, ALPHA,
00486 + A( 1 ), M+1, B, LDB )
00487 CALL SGEMM( 'N', 'N', K, N, K, -ONE, A( K+1 ),
00488 + M+1, B, LDB, ALPHA, B( K, 0 ), LDB )
00489 CALL STRSM( 'L', 'U', 'T', DIAG, K, N, ONE,
00490 + A( 0 ), M+1, B( K, 0 ), LDB )
00491
00492 ELSE
00493
00494
00495
00496
00497 CALL STRSM( 'L', 'U', 'N', DIAG, K, N, ALPHA,
00498 + A( 0 ), M+1, B( K, 0 ), LDB )
00499 CALL SGEMM( 'T', 'N', K, N, K, -ONE, A( K+1 ),
00500 + M+1, B( K, 0 ), LDB, ALPHA, B, LDB )
00501 CALL STRSM( 'L', 'L', 'T', DIAG, K, N, ONE,
00502 + A( 1 ), M+1, B, LDB )
00503
00504 END IF
00505
00506 ELSE
00507
00508
00509
00510 IF( .NOT.NOTRANS ) THEN
00511
00512
00513
00514
00515 CALL STRSM( 'L', 'L', 'N', DIAG, K, N, ALPHA,
00516 + A( K+1 ), M+1, B, LDB )
00517 CALL SGEMM( 'T', 'N', K, N, K, -ONE, A( 0 ), M+1,
00518 + B, LDB, ALPHA, B( K, 0 ), LDB )
00519 CALL STRSM( 'L', 'U', 'T', DIAG, K, N, ONE,
00520 + A( K ), M+1, B( K, 0 ), LDB )
00521
00522 ELSE
00523
00524
00525
00526 CALL STRSM( 'L', 'U', 'N', DIAG, K, N, ALPHA,
00527 + A( K ), M+1, B( K, 0 ), LDB )
00528 CALL SGEMM( 'N', 'N', K, N, K, -ONE, A( 0 ), M+1,
00529 + B( K, 0 ), LDB, ALPHA, B, LDB )
00530 CALL STRSM( 'L', 'L', 'T', DIAG, K, N, ONE,
00531 + A( K+1 ), M+1, B, LDB )
00532
00533 END IF
00534
00535 END IF
00536
00537 ELSE
00538
00539
00540
00541 IF( LOWER ) THEN
00542
00543
00544
00545 IF( NOTRANS ) THEN
00546
00547
00548
00549
00550 CALL STRSM( 'L', 'U', 'T', DIAG, K, N, ALPHA,
00551 + A( K ), K, B, LDB )
00552 CALL SGEMM( 'T', 'N', K, N, K, -ONE,
00553 + A( K*( K+1 ) ), K, B, LDB, ALPHA,
00554 + B( K, 0 ), LDB )
00555 CALL STRSM( 'L', 'L', 'N', DIAG, K, N, ONE,
00556 + A( 0 ), K, B( K, 0 ), LDB )
00557
00558 ELSE
00559
00560
00561
00562
00563 CALL STRSM( 'L', 'L', 'T', DIAG, K, N, ALPHA,
00564 + A( 0 ), K, B( K, 0 ), LDB )
00565 CALL SGEMM( 'N', 'N', K, N, K, -ONE,
00566 + A( K*( K+1 ) ), K, B( K, 0 ), LDB,
00567 + ALPHA, B, LDB )
00568 CALL STRSM( 'L', 'U', 'N', DIAG, K, N, ONE,
00569 + A( K ), K, B, LDB )
00570
00571 END IF
00572
00573 ELSE
00574
00575
00576
00577 IF( .NOT.NOTRANS ) THEN
00578
00579
00580
00581
00582 CALL STRSM( 'L', 'U', 'T', DIAG, K, N, ALPHA,
00583 + A( K*( K+1 ) ), K, B, LDB )
00584 CALL SGEMM( 'N', 'N', K, N, K, -ONE, A( 0 ), K, B,
00585 + LDB, ALPHA, B( K, 0 ), LDB )
00586 CALL STRSM( 'L', 'L', 'N', DIAG, K, N, ONE,
00587 + A( K*K ), K, B( K, 0 ), LDB )
00588
00589 ELSE
00590
00591
00592
00593
00594 CALL STRSM( 'L', 'L', 'T', DIAG, K, N, ALPHA,
00595 + A( K*K ), K, B( K, 0 ), LDB )
00596 CALL SGEMM( 'T', 'N', K, N, K, -ONE, A( 0 ), K,
00597 + B( K, 0 ), LDB, ALPHA, B, LDB )
00598 CALL STRSM( 'L', 'U', 'N', DIAG, K, N, ONE,
00599 + A( K*( K+1 ) ), K, B, LDB )
00600
00601 END IF
00602
00603 END IF
00604
00605 END IF
00606
00607 END IF
00608
00609 ELSE
00610
00611
00612
00613
00614
00615
00616
00617 IF( MOD( N, 2 ).EQ.0 ) THEN
00618 NISODD = .FALSE.
00619 K = N / 2
00620 ELSE
00621 NISODD = .TRUE.
00622 IF( LOWER ) THEN
00623 N2 = N / 2
00624 N1 = N - N2
00625 ELSE
00626 N1 = N / 2
00627 N2 = N - N1
00628 END IF
00629 END IF
00630
00631 IF( NISODD ) THEN
00632
00633
00634
00635 IF( NORMALTRANSR ) THEN
00636
00637
00638
00639 IF( LOWER ) THEN
00640
00641
00642
00643 IF( NOTRANS ) THEN
00644
00645
00646
00647
00648 CALL STRSM( 'R', 'U', 'T', DIAG, M, N2, ALPHA,
00649 + A( N ), N, B( 0, N1 ), LDB )
00650 CALL SGEMM( 'N', 'N', M, N1, N2, -ONE, B( 0, N1 ),
00651 + LDB, A( N1 ), N, ALPHA, B( 0, 0 ),
00652 + LDB )
00653 CALL STRSM( 'R', 'L', 'N', DIAG, M, N1, ONE,
00654 + A( 0 ), N, B( 0, 0 ), LDB )
00655
00656 ELSE
00657
00658
00659
00660
00661 CALL STRSM( 'R', 'L', 'T', DIAG, M, N1, ALPHA,
00662 + A( 0 ), N, B( 0, 0 ), LDB )
00663 CALL SGEMM( 'N', 'T', M, N2, N1, -ONE, B( 0, 0 ),
00664 + LDB, A( N1 ), N, ALPHA, B( 0, N1 ),
00665 + LDB )
00666 CALL STRSM( 'R', 'U', 'N', DIAG, M, N2, ONE,
00667 + A( N ), N, B( 0, N1 ), LDB )
00668
00669 END IF
00670
00671 ELSE
00672
00673
00674
00675 IF( NOTRANS ) THEN
00676
00677
00678
00679
00680 CALL STRSM( 'R', 'L', 'T', DIAG, M, N1, ALPHA,
00681 + A( N2 ), N, B( 0, 0 ), LDB )
00682 CALL SGEMM( 'N', 'N', M, N2, N1, -ONE, B( 0, 0 ),
00683 + LDB, A( 0 ), N, ALPHA, B( 0, N1 ),
00684 + LDB )
00685 CALL STRSM( 'R', 'U', 'N', DIAG, M, N2, ONE,
00686 + A( N1 ), N, B( 0, N1 ), LDB )
00687
00688 ELSE
00689
00690
00691
00692
00693 CALL STRSM( 'R', 'U', 'T', DIAG, M, N2, ALPHA,
00694 + A( N1 ), N, B( 0, N1 ), LDB )
00695 CALL SGEMM( 'N', 'T', M, N1, N2, -ONE, B( 0, N1 ),
00696 + LDB, A( 0 ), N, ALPHA, B( 0, 0 ), LDB )
00697 CALL STRSM( 'R', 'L', 'N', DIAG, M, N1, ONE,
00698 + A( N2 ), N, B( 0, 0 ), LDB )
00699
00700 END IF
00701
00702 END IF
00703
00704 ELSE
00705
00706
00707
00708 IF( LOWER ) THEN
00709
00710
00711
00712 IF( NOTRANS ) THEN
00713
00714
00715
00716
00717 CALL STRSM( 'R', 'L', 'N', DIAG, M, N2, ALPHA,
00718 + A( 1 ), N1, B( 0, N1 ), LDB )
00719 CALL SGEMM( 'N', 'T', M, N1, N2, -ONE, B( 0, N1 ),
00720 + LDB, A( N1*N1 ), N1, ALPHA, B( 0, 0 ),
00721 + LDB )
00722 CALL STRSM( 'R', 'U', 'T', DIAG, M, N1, ONE,
00723 + A( 0 ), N1, B( 0, 0 ), LDB )
00724
00725 ELSE
00726
00727
00728
00729
00730 CALL STRSM( 'R', 'U', 'N', DIAG, M, N1, ALPHA,
00731 + A( 0 ), N1, B( 0, 0 ), LDB )
00732 CALL SGEMM( 'N', 'N', M, N2, N1, -ONE, B( 0, 0 ),
00733 + LDB, A( N1*N1 ), N1, ALPHA, B( 0, N1 ),
00734 + LDB )
00735 CALL STRSM( 'R', 'L', 'T', DIAG, M, N2, ONE,
00736 + A( 1 ), N1, B( 0, N1 ), LDB )
00737
00738 END IF
00739
00740 ELSE
00741
00742
00743
00744 IF( NOTRANS ) THEN
00745
00746
00747
00748
00749 CALL STRSM( 'R', 'U', 'N', DIAG, M, N1, ALPHA,
00750 + A( N2*N2 ), N2, B( 0, 0 ), LDB )
00751 CALL SGEMM( 'N', 'T', M, N2, N1, -ONE, B( 0, 0 ),
00752 + LDB, A( 0 ), N2, ALPHA, B( 0, N1 ),
00753 + LDB )
00754 CALL STRSM( 'R', 'L', 'T', DIAG, M, N2, ONE,
00755 + A( N1*N2 ), N2, B( 0, N1 ), LDB )
00756
00757 ELSE
00758
00759
00760
00761
00762 CALL STRSM( 'R', 'L', 'N', DIAG, M, N2, ALPHA,
00763 + A( N1*N2 ), N2, B( 0, N1 ), LDB )
00764 CALL SGEMM( 'N', 'N', M, N1, N2, -ONE, B( 0, N1 ),
00765 + LDB, A( 0 ), N2, ALPHA, B( 0, 0 ),
00766 + LDB )
00767 CALL STRSM( 'R', 'U', 'T', DIAG, M, N1, ONE,
00768 + A( N2*N2 ), N2, B( 0, 0 ), LDB )
00769
00770 END IF
00771
00772 END IF
00773
00774 END IF
00775
00776 ELSE
00777
00778
00779
00780 IF( NORMALTRANSR ) THEN
00781
00782
00783
00784 IF( LOWER ) THEN
00785
00786
00787
00788 IF( NOTRANS ) THEN
00789
00790
00791
00792
00793 CALL STRSM( 'R', 'U', 'T', DIAG, M, K, ALPHA,
00794 + A( 0 ), N+1, B( 0, K ), LDB )
00795 CALL SGEMM( 'N', 'N', M, K, K, -ONE, B( 0, K ),
00796 + LDB, A( K+1 ), N+1, ALPHA, B( 0, 0 ),
00797 + LDB )
00798 CALL STRSM( 'R', 'L', 'N', DIAG, M, K, ONE,
00799 + A( 1 ), N+1, B( 0, 0 ), LDB )
00800
00801 ELSE
00802
00803
00804
00805
00806 CALL STRSM( 'R', 'L', 'T', DIAG, M, K, ALPHA,
00807 + A( 1 ), N+1, B( 0, 0 ), LDB )
00808 CALL SGEMM( 'N', 'T', M, K, K, -ONE, B( 0, 0 ),
00809 + LDB, A( K+1 ), N+1, ALPHA, B( 0, K ),
00810 + LDB )
00811 CALL STRSM( 'R', 'U', 'N', DIAG, M, K, ONE,
00812 + A( 0 ), N+1, B( 0, K ), LDB )
00813
00814 END IF
00815
00816 ELSE
00817
00818
00819
00820 IF( NOTRANS ) THEN
00821
00822
00823
00824
00825 CALL STRSM( 'R', 'L', 'T', DIAG, M, K, ALPHA,
00826 + A( K+1 ), N+1, B( 0, 0 ), LDB )
00827 CALL SGEMM( 'N', 'N', M, K, K, -ONE, B( 0, 0 ),
00828 + LDB, A( 0 ), N+1, ALPHA, B( 0, K ),
00829 + LDB )
00830 CALL STRSM( 'R', 'U', 'N', DIAG, M, K, ONE,
00831 + A( K ), N+1, B( 0, K ), LDB )
00832
00833 ELSE
00834
00835
00836
00837
00838 CALL STRSM( 'R', 'U', 'T', DIAG, M, K, ALPHA,
00839 + A( K ), N+1, B( 0, K ), LDB )
00840 CALL SGEMM( 'N', 'T', M, K, K, -ONE, B( 0, K ),
00841 + LDB, A( 0 ), N+1, ALPHA, B( 0, 0 ),
00842 + LDB )
00843 CALL STRSM( 'R', 'L', 'N', DIAG, M, K, ONE,
00844 + A( K+1 ), N+1, B( 0, 0 ), LDB )
00845
00846 END IF
00847
00848 END IF
00849
00850 ELSE
00851
00852
00853
00854 IF( LOWER ) THEN
00855
00856
00857
00858 IF( NOTRANS ) THEN
00859
00860
00861
00862
00863 CALL STRSM( 'R', 'L', 'N', DIAG, M, K, ALPHA,
00864 + A( 0 ), K, B( 0, K ), LDB )
00865 CALL SGEMM( 'N', 'T', M, K, K, -ONE, B( 0, K ),
00866 + LDB, A( ( K+1 )*K ), K, ALPHA,
00867 + B( 0, 0 ), LDB )
00868 CALL STRSM( 'R', 'U', 'T', DIAG, M, K, ONE,
00869 + A( K ), K, B( 0, 0 ), LDB )
00870
00871 ELSE
00872
00873
00874
00875
00876 CALL STRSM( 'R', 'U', 'N', DIAG, M, K, ALPHA,
00877 + A( K ), K, B( 0, 0 ), LDB )
00878 CALL SGEMM( 'N', 'N', M, K, K, -ONE, B( 0, 0 ),
00879 + LDB, A( ( K+1 )*K ), K, ALPHA,
00880 + B( 0, K ), LDB )
00881 CALL STRSM( 'R', 'L', 'T', DIAG, M, K, ONE,
00882 + A( 0 ), K, B( 0, K ), LDB )
00883
00884 END IF
00885
00886 ELSE
00887
00888
00889
00890 IF( NOTRANS ) THEN
00891
00892
00893
00894
00895 CALL STRSM( 'R', 'U', 'N', DIAG, M, K, ALPHA,
00896 + A( ( K+1 )*K ), K, B( 0, 0 ), LDB )
00897 CALL SGEMM( 'N', 'T', M, K, K, -ONE, B( 0, 0 ),
00898 + LDB, A( 0 ), K, ALPHA, B( 0, K ), LDB )
00899 CALL STRSM( 'R', 'L', 'T', DIAG, M, K, ONE,
00900 + A( K*K ), K, B( 0, K ), LDB )
00901
00902 ELSE
00903
00904
00905
00906
00907 CALL STRSM( 'R', 'L', 'N', DIAG, M, K, ALPHA,
00908 + A( K*K ), K, B( 0, K ), LDB )
00909 CALL SGEMM( 'N', 'N', M, K, K, -ONE, B( 0, K ),
00910 + LDB, A( 0 ), K, ALPHA, B( 0, 0 ), LDB )
00911 CALL STRSM( 'R', 'U', 'T', DIAG, M, K, ONE,
00912 + A( ( K+1 )*K ), K, B( 0, 0 ), LDB )
00913
00914 END IF
00915
00916 END IF
00917
00918 END IF
00919
00920 END IF
00921 END IF
00922
00923 RETURN
00924
00925
00926
00927 END