LAPACK  3.10.1
LAPACK: Linear Algebra PACKage

◆ zchke()

subroutine zchke ( integer  ISNUM,
character*6  SRNAMT,
integer  NOUT 
)

Definition at line 2378 of file zblat2.f.

2379 *
2380 * Tests the error exits from the Level 2 Blas.
2381 * Requires a special version of the error-handling routine XERBLA.
2382 * ALPHA, RALPHA, BETA, A, X and Y should not need to be defined.
2383 *
2384 * Auxiliary routine for test program for Level 2 Blas.
2385 *
2386 * -- Written on 10-August-1987.
2387 * Richard Hanson, Sandia National Labs.
2388 * Jeremy Du Croz, NAG Central Office.
2389 *
2390 * .. Scalar Arguments ..
2391  INTEGER ISNUM, NOUT
2392  CHARACTER*6 SRNAMT
2393 * .. Scalars in Common ..
2394  INTEGER INFOT, NOUTC
2395  LOGICAL LERR, OK
2396 * .. Local Scalars ..
2397  COMPLEX*16 ALPHA, BETA
2398  DOUBLE PRECISION RALPHA
2399 * .. Local Arrays ..
2400  COMPLEX*16 A( 1, 1 ), X( 1 ), Y( 1 )
2401 * .. External Subroutines ..
2402  EXTERNAL chkxer, zgbmv, zgemv, zgerc, zgeru, zhbmv,
2403  $ zhemv, zher, zher2, zhpmv, zhpr, zhpr2, ztbmv,
2404  $ ztbsv, ztpmv, ztpsv, ztrmv, ztrsv
2405 * .. Common blocks ..
2406  COMMON /infoc/infot, noutc, ok, lerr
2407 * .. Executable Statements ..
2408 * OK is set to .FALSE. by the special version of XERBLA or by CHKXER
2409 * if anything is wrong.
2410  ok = .true.
2411 * LERR is set to .TRUE. by the special version of XERBLA each time
2412 * it is called, and is then tested and re-set by CHKXER.
2413  lerr = .false.
2414  GO TO ( 10, 20, 30, 40, 50, 60, 70, 80,
2415  $ 90, 100, 110, 120, 130, 140, 150, 160,
2416  $ 170 )isnum
2417  10 infot = 1
2418  CALL zgemv( '/', 0, 0, alpha, a, 1, x, 1, beta, y, 1 )
2419  CALL chkxer( srnamt, infot, nout, lerr, ok )
2420  infot = 2
2421  CALL zgemv( 'N', -1, 0, alpha, a, 1, x, 1, beta, y, 1 )
2422  CALL chkxer( srnamt, infot, nout, lerr, ok )
2423  infot = 3
2424  CALL zgemv( 'N', 0, -1, alpha, a, 1, x, 1, beta, y, 1 )
2425  CALL chkxer( srnamt, infot, nout, lerr, ok )
2426  infot = 6
2427  CALL zgemv( 'N', 2, 0, alpha, a, 1, x, 1, beta, y, 1 )
2428  CALL chkxer( srnamt, infot, nout, lerr, ok )
2429  infot = 8
2430  CALL zgemv( 'N', 0, 0, alpha, a, 1, x, 0, beta, y, 1 )
2431  CALL chkxer( srnamt, infot, nout, lerr, ok )
2432  infot = 11
2433  CALL zgemv( 'N', 0, 0, alpha, a, 1, x, 1, beta, y, 0 )
2434  CALL chkxer( srnamt, infot, nout, lerr, ok )
2435  GO TO 180
2436  20 infot = 1
2437  CALL zgbmv( '/', 0, 0, 0, 0, alpha, a, 1, x, 1, beta, y, 1 )
2438  CALL chkxer( srnamt, infot, nout, lerr, ok )
2439  infot = 2
2440  CALL zgbmv( 'N', -1, 0, 0, 0, alpha, a, 1, x, 1, beta, y, 1 )
2441  CALL chkxer( srnamt, infot, nout, lerr, ok )
2442  infot = 3
2443  CALL zgbmv( 'N', 0, -1, 0, 0, alpha, a, 1, x, 1, beta, y, 1 )
2444  CALL chkxer( srnamt, infot, nout, lerr, ok )
2445  infot = 4
2446  CALL zgbmv( 'N', 0, 0, -1, 0, alpha, a, 1, x, 1, beta, y, 1 )
2447  CALL chkxer( srnamt, infot, nout, lerr, ok )
2448  infot = 5
2449  CALL zgbmv( 'N', 2, 0, 0, -1, alpha, a, 1, x, 1, beta, y, 1 )
2450  CALL chkxer( srnamt, infot, nout, lerr, ok )
2451  infot = 8
2452  CALL zgbmv( 'N', 0, 0, 1, 0, alpha, a, 1, x, 1, beta, y, 1 )
2453  CALL chkxer( srnamt, infot, nout, lerr, ok )
2454  infot = 10
2455  CALL zgbmv( 'N', 0, 0, 0, 0, alpha, a, 1, x, 0, beta, y, 1 )
2456  CALL chkxer( srnamt, infot, nout, lerr, ok )
2457  infot = 13
2458  CALL zgbmv( 'N', 0, 0, 0, 0, alpha, a, 1, x, 1, beta, y, 0 )
2459  CALL chkxer( srnamt, infot, nout, lerr, ok )
2460  GO TO 180
2461  30 infot = 1
2462  CALL zhemv( '/', 0, alpha, a, 1, x, 1, beta, y, 1 )
2463  CALL chkxer( srnamt, infot, nout, lerr, ok )
2464  infot = 2
2465  CALL zhemv( 'U', -1, alpha, a, 1, x, 1, beta, y, 1 )
2466  CALL chkxer( srnamt, infot, nout, lerr, ok )
2467  infot = 5
2468  CALL zhemv( 'U', 2, alpha, a, 1, x, 1, beta, y, 1 )
2469  CALL chkxer( srnamt, infot, nout, lerr, ok )
2470  infot = 7
2471  CALL zhemv( 'U', 0, alpha, a, 1, x, 0, beta, y, 1 )
2472  CALL chkxer( srnamt, infot, nout, lerr, ok )
2473  infot = 10
2474  CALL zhemv( 'U', 0, alpha, a, 1, x, 1, beta, y, 0 )
2475  CALL chkxer( srnamt, infot, nout, lerr, ok )
2476  GO TO 180
2477  40 infot = 1
2478  CALL zhbmv( '/', 0, 0, alpha, a, 1, x, 1, beta, y, 1 )
2479  CALL chkxer( srnamt, infot, nout, lerr, ok )
2480  infot = 2
2481  CALL zhbmv( 'U', -1, 0, alpha, a, 1, x, 1, beta, y, 1 )
2482  CALL chkxer( srnamt, infot, nout, lerr, ok )
2483  infot = 3
2484  CALL zhbmv( 'U', 0, -1, alpha, a, 1, x, 1, beta, y, 1 )
2485  CALL chkxer( srnamt, infot, nout, lerr, ok )
2486  infot = 6
2487  CALL zhbmv( 'U', 0, 1, alpha, a, 1, x, 1, beta, y, 1 )
2488  CALL chkxer( srnamt, infot, nout, lerr, ok )
2489  infot = 8
2490  CALL zhbmv( 'U', 0, 0, alpha, a, 1, x, 0, beta, y, 1 )
2491  CALL chkxer( srnamt, infot, nout, lerr, ok )
2492  infot = 11
2493  CALL zhbmv( 'U', 0, 0, alpha, a, 1, x, 1, beta, y, 0 )
2494  CALL chkxer( srnamt, infot, nout, lerr, ok )
2495  GO TO 180
2496  50 infot = 1
2497  CALL zhpmv( '/', 0, alpha, a, x, 1, beta, y, 1 )
2498  CALL chkxer( srnamt, infot, nout, lerr, ok )
2499  infot = 2
2500  CALL zhpmv( 'U', -1, alpha, a, x, 1, beta, y, 1 )
2501  CALL chkxer( srnamt, infot, nout, lerr, ok )
2502  infot = 6
2503  CALL zhpmv( 'U', 0, alpha, a, x, 0, beta, y, 1 )
2504  CALL chkxer( srnamt, infot, nout, lerr, ok )
2505  infot = 9
2506  CALL zhpmv( 'U', 0, alpha, a, x, 1, beta, y, 0 )
2507  CALL chkxer( srnamt, infot, nout, lerr, ok )
2508  GO TO 180
2509  60 infot = 1
2510  CALL ztrmv( '/', 'N', 'N', 0, a, 1, x, 1 )
2511  CALL chkxer( srnamt, infot, nout, lerr, ok )
2512  infot = 2
2513  CALL ztrmv( 'U', '/', 'N', 0, a, 1, x, 1 )
2514  CALL chkxer( srnamt, infot, nout, lerr, ok )
2515  infot = 3
2516  CALL ztrmv( 'U', 'N', '/', 0, a, 1, x, 1 )
2517  CALL chkxer( srnamt, infot, nout, lerr, ok )
2518  infot = 4
2519  CALL ztrmv( 'U', 'N', 'N', -1, a, 1, x, 1 )
2520  CALL chkxer( srnamt, infot, nout, lerr, ok )
2521  infot = 6
2522  CALL ztrmv( 'U', 'N', 'N', 2, a, 1, x, 1 )
2523  CALL chkxer( srnamt, infot, nout, lerr, ok )
2524  infot = 8
2525  CALL ztrmv( 'U', 'N', 'N', 0, a, 1, x, 0 )
2526  CALL chkxer( srnamt, infot, nout, lerr, ok )
2527  GO TO 180
2528  70 infot = 1
2529  CALL ztbmv( '/', 'N', 'N', 0, 0, a, 1, x, 1 )
2530  CALL chkxer( srnamt, infot, nout, lerr, ok )
2531  infot = 2
2532  CALL ztbmv( 'U', '/', 'N', 0, 0, a, 1, x, 1 )
2533  CALL chkxer( srnamt, infot, nout, lerr, ok )
2534  infot = 3
2535  CALL ztbmv( 'U', 'N', '/', 0, 0, a, 1, x, 1 )
2536  CALL chkxer( srnamt, infot, nout, lerr, ok )
2537  infot = 4
2538  CALL ztbmv( 'U', 'N', 'N', -1, 0, a, 1, x, 1 )
2539  CALL chkxer( srnamt, infot, nout, lerr, ok )
2540  infot = 5
2541  CALL ztbmv( 'U', 'N', 'N', 0, -1, a, 1, x, 1 )
2542  CALL chkxer( srnamt, infot, nout, lerr, ok )
2543  infot = 7
2544  CALL ztbmv( 'U', 'N', 'N', 0, 1, a, 1, x, 1 )
2545  CALL chkxer( srnamt, infot, nout, lerr, ok )
2546  infot = 9
2547  CALL ztbmv( 'U', 'N', 'N', 0, 0, a, 1, x, 0 )
2548  CALL chkxer( srnamt, infot, nout, lerr, ok )
2549  GO TO 180
2550  80 infot = 1
2551  CALL ztpmv( '/', 'N', 'N', 0, a, x, 1 )
2552  CALL chkxer( srnamt, infot, nout, lerr, ok )
2553  infot = 2
2554  CALL ztpmv( 'U', '/', 'N', 0, a, x, 1 )
2555  CALL chkxer( srnamt, infot, nout, lerr, ok )
2556  infot = 3
2557  CALL ztpmv( 'U', 'N', '/', 0, a, x, 1 )
2558  CALL chkxer( srnamt, infot, nout, lerr, ok )
2559  infot = 4
2560  CALL ztpmv( 'U', 'N', 'N', -1, a, x, 1 )
2561  CALL chkxer( srnamt, infot, nout, lerr, ok )
2562  infot = 7
2563  CALL ztpmv( 'U', 'N', 'N', 0, a, x, 0 )
2564  CALL chkxer( srnamt, infot, nout, lerr, ok )
2565  GO TO 180
2566  90 infot = 1
2567  CALL ztrsv( '/', 'N', 'N', 0, a, 1, x, 1 )
2568  CALL chkxer( srnamt, infot, nout, lerr, ok )
2569  infot = 2
2570  CALL ztrsv( 'U', '/', 'N', 0, a, 1, x, 1 )
2571  CALL chkxer( srnamt, infot, nout, lerr, ok )
2572  infot = 3
2573  CALL ztrsv( 'U', 'N', '/', 0, a, 1, x, 1 )
2574  CALL chkxer( srnamt, infot, nout, lerr, ok )
2575  infot = 4
2576  CALL ztrsv( 'U', 'N', 'N', -1, a, 1, x, 1 )
2577  CALL chkxer( srnamt, infot, nout, lerr, ok )
2578  infot = 6
2579  CALL ztrsv( 'U', 'N', 'N', 2, a, 1, x, 1 )
2580  CALL chkxer( srnamt, infot, nout, lerr, ok )
2581  infot = 8
2582  CALL ztrsv( 'U', 'N', 'N', 0, a, 1, x, 0 )
2583  CALL chkxer( srnamt, infot, nout, lerr, ok )
2584  GO TO 180
2585  100 infot = 1
2586  CALL ztbsv( '/', 'N', 'N', 0, 0, a, 1, x, 1 )
2587  CALL chkxer( srnamt, infot, nout, lerr, ok )
2588  infot = 2
2589  CALL ztbsv( 'U', '/', 'N', 0, 0, a, 1, x, 1 )
2590  CALL chkxer( srnamt, infot, nout, lerr, ok )
2591  infot = 3
2592  CALL ztbsv( 'U', 'N', '/', 0, 0, a, 1, x, 1 )
2593  CALL chkxer( srnamt, infot, nout, lerr, ok )
2594  infot = 4
2595  CALL ztbsv( 'U', 'N', 'N', -1, 0, a, 1, x, 1 )
2596  CALL chkxer( srnamt, infot, nout, lerr, ok )
2597  infot = 5
2598  CALL ztbsv( 'U', 'N', 'N', 0, -1, a, 1, x, 1 )
2599  CALL chkxer( srnamt, infot, nout, lerr, ok )
2600  infot = 7
2601  CALL ztbsv( 'U', 'N', 'N', 0, 1, a, 1, x, 1 )
2602  CALL chkxer( srnamt, infot, nout, lerr, ok )
2603  infot = 9
2604  CALL ztbsv( 'U', 'N', 'N', 0, 0, a, 1, x, 0 )
2605  CALL chkxer( srnamt, infot, nout, lerr, ok )
2606  GO TO 180
2607  110 infot = 1
2608  CALL ztpsv( '/', 'N', 'N', 0, a, x, 1 )
2609  CALL chkxer( srnamt, infot, nout, lerr, ok )
2610  infot = 2
2611  CALL ztpsv( 'U', '/', 'N', 0, a, x, 1 )
2612  CALL chkxer( srnamt, infot, nout, lerr, ok )
2613  infot = 3
2614  CALL ztpsv( 'U', 'N', '/', 0, a, x, 1 )
2615  CALL chkxer( srnamt, infot, nout, lerr, ok )
2616  infot = 4
2617  CALL ztpsv( 'U', 'N', 'N', -1, a, x, 1 )
2618  CALL chkxer( srnamt, infot, nout, lerr, ok )
2619  infot = 7
2620  CALL ztpsv( 'U', 'N', 'N', 0, a, x, 0 )
2621  CALL chkxer( srnamt, infot, nout, lerr, ok )
2622  GO TO 180
2623  120 infot = 1
2624  CALL zgerc( -1, 0, alpha, x, 1, y, 1, a, 1 )
2625  CALL chkxer( srnamt, infot, nout, lerr, ok )
2626  infot = 2
2627  CALL zgerc( 0, -1, alpha, x, 1, y, 1, a, 1 )
2628  CALL chkxer( srnamt, infot, nout, lerr, ok )
2629  infot = 5
2630  CALL zgerc( 0, 0, alpha, x, 0, y, 1, a, 1 )
2631  CALL chkxer( srnamt, infot, nout, lerr, ok )
2632  infot = 7
2633  CALL zgerc( 0, 0, alpha, x, 1, y, 0, a, 1 )
2634  CALL chkxer( srnamt, infot, nout, lerr, ok )
2635  infot = 9
2636  CALL zgerc( 2, 0, alpha, x, 1, y, 1, a, 1 )
2637  CALL chkxer( srnamt, infot, nout, lerr, ok )
2638  GO TO 180
2639  130 infot = 1
2640  CALL zgeru( -1, 0, alpha, x, 1, y, 1, a, 1 )
2641  CALL chkxer( srnamt, infot, nout, lerr, ok )
2642  infot = 2
2643  CALL zgeru( 0, -1, alpha, x, 1, y, 1, a, 1 )
2644  CALL chkxer( srnamt, infot, nout, lerr, ok )
2645  infot = 5
2646  CALL zgeru( 0, 0, alpha, x, 0, y, 1, a, 1 )
2647  CALL chkxer( srnamt, infot, nout, lerr, ok )
2648  infot = 7
2649  CALL zgeru( 0, 0, alpha, x, 1, y, 0, a, 1 )
2650  CALL chkxer( srnamt, infot, nout, lerr, ok )
2651  infot = 9
2652  CALL zgeru( 2, 0, alpha, x, 1, y, 1, a, 1 )
2653  CALL chkxer( srnamt, infot, nout, lerr, ok )
2654  GO TO 180
2655  140 infot = 1
2656  CALL zher( '/', 0, ralpha, x, 1, a, 1 )
2657  CALL chkxer( srnamt, infot, nout, lerr, ok )
2658  infot = 2
2659  CALL zher( 'U', -1, ralpha, x, 1, a, 1 )
2660  CALL chkxer( srnamt, infot, nout, lerr, ok )
2661  infot = 5
2662  CALL zher( 'U', 0, ralpha, x, 0, a, 1 )
2663  CALL chkxer( srnamt, infot, nout, lerr, ok )
2664  infot = 7
2665  CALL zher( 'U', 2, ralpha, x, 1, a, 1 )
2666  CALL chkxer( srnamt, infot, nout, lerr, ok )
2667  GO TO 180
2668  150 infot = 1
2669  CALL zhpr( '/', 0, ralpha, x, 1, a )
2670  CALL chkxer( srnamt, infot, nout, lerr, ok )
2671  infot = 2
2672  CALL zhpr( 'U', -1, ralpha, x, 1, a )
2673  CALL chkxer( srnamt, infot, nout, lerr, ok )
2674  infot = 5
2675  CALL zhpr( 'U', 0, ralpha, x, 0, a )
2676  CALL chkxer( srnamt, infot, nout, lerr, ok )
2677  GO TO 180
2678  160 infot = 1
2679  CALL zher2( '/', 0, alpha, x, 1, y, 1, a, 1 )
2680  CALL chkxer( srnamt, infot, nout, lerr, ok )
2681  infot = 2
2682  CALL zher2( 'U', -1, alpha, x, 1, y, 1, a, 1 )
2683  CALL chkxer( srnamt, infot, nout, lerr, ok )
2684  infot = 5
2685  CALL zher2( 'U', 0, alpha, x, 0, y, 1, a, 1 )
2686  CALL chkxer( srnamt, infot, nout, lerr, ok )
2687  infot = 7
2688  CALL zher2( 'U', 0, alpha, x, 1, y, 0, a, 1 )
2689  CALL chkxer( srnamt, infot, nout, lerr, ok )
2690  infot = 9
2691  CALL zher2( 'U', 2, alpha, x, 1, y, 1, a, 1 )
2692  CALL chkxer( srnamt, infot, nout, lerr, ok )
2693  GO TO 180
2694  170 infot = 1
2695  CALL zhpr2( '/', 0, alpha, x, 1, y, 1, a )
2696  CALL chkxer( srnamt, infot, nout, lerr, ok )
2697  infot = 2
2698  CALL zhpr2( 'U', -1, alpha, x, 1, y, 1, a )
2699  CALL chkxer( srnamt, infot, nout, lerr, ok )
2700  infot = 5
2701  CALL zhpr2( 'U', 0, alpha, x, 0, y, 1, a )
2702  CALL chkxer( srnamt, infot, nout, lerr, ok )
2703  infot = 7
2704  CALL zhpr2( 'U', 0, alpha, x, 1, y, 0, a )
2705  CALL chkxer( srnamt, infot, nout, lerr, ok )
2706 *
2707  180 IF( ok )THEN
2708  WRITE( nout, fmt = 9999 )srnamt
2709  ELSE
2710  WRITE( nout, fmt = 9998 )srnamt
2711  END IF
2712  RETURN
2713 *
2714  9999 FORMAT( ' ', a6, ' PASSED THE TESTS OF ERROR-EXITS' )
2715  9998 FORMAT( ' ******* ', a6, ' FAILED THE TESTS OF ERROR-EXITS *****',
2716  $ '**' )
2717 *
2718 * End of ZCHKE
2719 *
subroutine chkxer(SRNAMT, INFOT, NOUT, LERR, OK)
Definition: cblat2.f:3196
subroutine zhemv(UPLO, N, ALPHA, A, LDA, X, INCX, BETA, Y, INCY)
ZHEMV
Definition: zhemv.f:154
subroutine ztbsv(UPLO, TRANS, DIAG, N, K, A, LDA, X, INCX)
ZTBSV
Definition: ztbsv.f:189
subroutine ztbmv(UPLO, TRANS, DIAG, N, K, A, LDA, X, INCX)
ZTBMV
Definition: ztbmv.f:186
subroutine zhpr(UPLO, N, ALPHA, X, INCX, AP)
ZHPR
Definition: zhpr.f:130
subroutine zhpr2(UPLO, N, ALPHA, X, INCX, Y, INCY, AP)
ZHPR2
Definition: zhpr2.f:145
subroutine ztrmv(UPLO, TRANS, DIAG, N, A, LDA, X, INCX)
ZTRMV
Definition: ztrmv.f:147
subroutine zhbmv(UPLO, N, K, ALPHA, A, LDA, X, INCX, BETA, Y, INCY)
ZHBMV
Definition: zhbmv.f:187
subroutine zgeru(M, N, ALPHA, X, INCX, Y, INCY, A, LDA)
ZGERU
Definition: zgeru.f:130
subroutine zgerc(M, N, ALPHA, X, INCX, Y, INCY, A, LDA)
ZGERC
Definition: zgerc.f:130
subroutine ztpsv(UPLO, TRANS, DIAG, N, AP, X, INCX)
ZTPSV
Definition: ztpsv.f:144
subroutine ztrsv(UPLO, TRANS, DIAG, N, A, LDA, X, INCX)
ZTRSV
Definition: ztrsv.f:149
subroutine zgbmv(TRANS, M, N, KL, KU, ALPHA, A, LDA, X, INCX, BETA, Y, INCY)
ZGBMV
Definition: zgbmv.f:187
subroutine zher(UPLO, N, ALPHA, X, INCX, A, LDA)
ZHER
Definition: zher.f:135
subroutine zher2(UPLO, N, ALPHA, X, INCX, Y, INCY, A, LDA)
ZHER2
Definition: zher2.f:150
subroutine zhpmv(UPLO, N, ALPHA, AP, X, INCX, BETA, Y, INCY)
ZHPMV
Definition: zhpmv.f:149
subroutine ztpmv(UPLO, TRANS, DIAG, N, AP, X, INCX)
ZTPMV
Definition: ztpmv.f:142
subroutine zgemv(TRANS, M, N, ALPHA, A, LDA, X, INCX, BETA, Y, INCY)
ZGEMV
Definition: zgemv.f:158
Here is the caller graph for this function: