LAPACK  3.10.0
LAPACK: Linear Algebra PACKage

◆ cchke()

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

Definition at line 2371 of file cblat2.f.

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