June 24 2002 2:33:10.722 PM SBLAS_PRB Tests for SBLAS, the Single Precision basic linear algebra subprograms. TEST01 ISAMAX returns the index of maximum magnitude; ISAMIN returns the index of minimum magnitude; ISMAX returns the index of maximum value; ISMIN returns the index of minimum value; SAMAX returns the maximum magnitude; SAMIN returns the minimum magnitude; SMAX returns the maximum value; SMIN returns the minimum value; The vector X: 1 2.0000 2 -2.0000 3 5.0000 4 1.0000 5 -3.0000 6 4.0000 7 0.0000 8 -4.0000 9 3.0000 10 -1.0000 11 -5.0000 The index of maximum magnitude = 3 The maximum magnitude = 5. The index of minimum magnitude = 7 The minimum magnitude = 0.E+0 The index of maximum value = 3 The maximum value = 5. The index of minimum value = 11 The minimum value = -5. TEST02 Demonstrate the use of SASUM which adds the absolute values of elements of a vector. X = 1, -2. 2, 4. 3, -6. 4, 8. 5, -10. 6, 12. 7, -14. 8, 16. 9, -18. 10, 20. SASUM ( NX, X, 1 ) = 110. SASUM ( NX/2, X, 2 ) = 50. SASUM ( 2, X, NX/2 ) = 14. Demonstrate with a matrix A: 11., -12., 13., -14. -21., 22., -23., 24. 31., -32., 33., -34. -41., 42., -43., 44. 51., -52., 53., -54. SASUM ( MA, A(1,2), 1 ) = 160. SASUM ( NA, A(2,1), LDA ) = 90. TEST03 SDOT computes the dot product of vectors. Dot product of X and Y is -55. Product of row 2 of A and X is 85. Product of column 2 of A and X is 85. Matrix product computed with SDOT: 50.0000 30.0000 10.0000 -10.0000 -30.0000 60.0000 35.0000 10.0000 -15.0000 -40.0000 70.0000 40.0000 10.0000 -20.0000 -50.0000 80.0000 45.0000 10.0000 -25.0000 -60.0000 90.0000 50.0000 10.0000 -30.0000 -70.0000 TEST04 SNRM2 computes the Euclidean norm of a vector. The vector X: 1 1.0000 2 2.0000 3 3.0000 4 4.0000 5 5.0000 The 2-norm of X is 7.41619873 The 2-norm of row 2 of A is 11.6189499 The 2-norm of column 2 of A is 11.6189499 TEST05 Use ISAMAX, SAXPY, SDOT and SSCAL in a Gauss elimination routine. First five entries of solution: 1.00000 2.00000 3.00000 4.00000 5.00000 TEST06 SLLTB is a Cholesky factor routine, SLLTS is a Cholesky solve routine, built out of level 1, 2 and 3 BLAS. First 10 entries of solution: 1.00000 2.00000 3.00000 4.00000 5.00000 6.00000 7.00001 8.00001 9.00001 10.0000 SBLAS_PRB Normal end of execution.