---
name: "c_cblat2.f"
section: "3"
platform: "linux"
package: "lapack-doc"
version: "3.12.1-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/c_cblat2.f"
---

# c\_cblat2.f(3)

## NAME

CBLAS/testing/c\_cblat2.f

## SYNOPSIS

### Functions/Subroutines

program **cblat2**\
 subroutine **cchk1** (sname, eps, thresh, nout, ntra, trace, rewi, fatal, nidim, idim, nkb, kb, nalf, alf, nbet, bet, ninc, inc, nmax, incmax, a, aa, as, x, xx, xs, y, yy, ys, yt, g, iorder)\
 subroutine **cchk2** (sname, eps, thresh, nout, ntra, trace, rewi, fatal, nidim, idim, nkb, kb, nalf, alf, nbet, bet, ninc, inc, nmax, incmax, a, aa, as, x, xx, xs, y, yy, ys, yt, g, iorder)\
 subroutine **cchk3** (sname, eps, thresh, nout, ntra, trace, rewi, fatal, nidim, idim, nkb, kb, ninc, inc, nmax, incmax, a, aa, as, x, xx, xs, xt, g, z, iorder)\
 subroutine **cchk4** (sname, eps, thresh, nout, ntra, trace, rewi, fatal, nidim, idim, nalf, alf, ninc, inc, nmax, incmax, a, aa, as, x, xx, xs, y, yy, ys, yt, g, z, iorder)\
 subroutine **cchk5** (sname, eps, thresh, nout, ntra, trace, rewi, fatal, nidim, idim, nalf, alf, ninc, inc, nmax, incmax, a, aa, as, x, xx, xs, y, yy, ys, yt, g, z, iorder)\
 subroutine **cchk6** (sname, eps, thresh, nout, ntra, trace, rewi, fatal, nidim, idim, nalf, alf, ninc, inc, nmax, incmax, a, aa, as, x, xx, xs, y, yy, ys, yt, g, z, iorder)\
 subroutine **cmvch** (trans, m, n, alpha, a, nmax, x, incx, beta, y, incy, yt, g, yy, eps, err, fatal, nout, mv)\
 logical function **lce** (ri, rj, lr)\
 logical function **lceres** (type, uplo, m, n, aa, as, lda)\
 complex function **cbeg** (reset)\
 real function **sdiff** (x, y)\
 subroutine **cmake** (type, uplo, diag, m, n, a, nmax, aa, lda, kl, ku, reset, transl)\

## Function/Subroutine Documentation

### complex function cbeg (logical reset)

Definition at line **2673** of file **c\_cblat2.f**.

### program cblat2

Definition at line **1** of file **c\_cblat2.f**.

### subroutine cchk1 (character\*12 sname, real eps, real thresh, integer nout, integer ntra, logical trace, logical rewi, logical fatal, integer nidim, integer, dimension( nidim ) idim, integer nkb, integer, dimension( nkb ) kb, integer nalf, complex, dimension( nalf ) alf, integer nbet, complex, dimension( nbet ) bet, integer ninc, integer, dimension( ninc ) inc, integer nmax, integer incmax, complex, dimension( nmax, nmax ) a, complex, dimension( nmax\*nmax ) aa, complex, dimension( nmax\*nmax ) as, complex, dimension( nmax ) x, complex, dimension( nmax\*incmax ) xx, complex, dimension( nmax\*incmax ) xs, complex, dimension( nmax ) y, complex, dimension( nmax\*incmax ) yy, complex, dimension( nmax\*incmax ) ys, complex, dimension( nmax ) yt, real, dimension( nmax ) g, integer iorder)

Definition at line **462** of file **c\_cblat2.f**.

### subroutine cchk2 (character\*12 sname, real eps, real thresh, integer nout, integer ntra, logical trace, logical rewi, logical fatal, integer nidim, integer, dimension( nidim ) idim, integer nkb, integer, dimension( nkb ) kb, integer nalf, complex, dimension( nalf ) alf, integer nbet, complex, dimension( nbet ) bet, integer ninc, integer, dimension( ninc ) inc, integer nmax, integer incmax, complex, dimension( nmax, nmax ) a, complex, dimension( nmax\*nmax ) aa, complex, dimension( nmax\*nmax ) as, complex, dimension( nmax ) x, complex, dimension( nmax\*incmax ) xx, complex, dimension( nmax\*incmax ) xs, complex, dimension( nmax ) y, complex, dimension( nmax\*incmax ) yy, complex, dimension( nmax\*incmax ) ys, complex, dimension( nmax ) yt, real, dimension( nmax ) g, integer iorder)

Definition at line **817** of file **c\_cblat2.f**.

### subroutine cchk3 (character\*12 sname, real eps, real thresh, integer nout, integer ntra, logical trace, logical rewi, logical fatal, integer nidim, integer, dimension( nidim ) idim, integer nkb, integer, dimension( nkb ) kb, integer ninc, integer, dimension( ninc ) inc, integer nmax, integer incmax, complex, dimension( nmax, nmax ) a, complex, dimension( nmax\*nmax ) aa, complex, dimension( nmax\*nmax ) as, complex, dimension( nmax ) x, complex, dimension( nmax\*incmax ) xx, complex, dimension( nmax\*incmax ) xs, complex, dimension( nmax ) xt, real, dimension( nmax ) g, complex, dimension( nmax ) z, integer iorder)

Definition at line **1173** of file **c\_cblat2.f**.

### subroutine cchk4 (character\*12 sname, real eps, real thresh, integer nout, integer ntra, logical trace, logical rewi, logical fatal, integer nidim, integer, dimension( nidim ) idim, integer nalf, complex, dimension( nalf ) alf, integer ninc, integer, dimension( ninc ) inc, integer nmax, integer incmax, complex, dimension( nmax, nmax ) a, complex, dimension( nmax\*nmax ) aa, complex, dimension( nmax\*nmax ) as, complex, dimension( nmax ) x, complex, dimension( nmax\*incmax ) xx, complex, dimension( nmax\*incmax ) xs, complex, dimension( nmax ) y, complex, dimension( nmax\*incmax ) yy, complex, dimension( nmax\*incmax ) ys, complex, dimension( nmax ) yt, real, dimension( nmax ) g, complex, dimension( nmax ) z, integer iorder)

Definition at line **1554** of file **c\_cblat2.f**.

### subroutine cchk5 (character\*12 sname, real eps, real thresh, integer nout, integer ntra, logical trace, logical rewi, logical fatal, integer nidim, integer, dimension( nidim ) idim, integer nalf, complex, dimension( nalf ) alf, integer ninc, integer, dimension( ninc ) inc, integer nmax, integer incmax, complex, dimension( nmax, nmax ) a, complex, dimension( nmax\*nmax ) aa, complex, dimension( nmax\*nmax ) as, complex, dimension( nmax ) x, complex, dimension( nmax\*incmax ) xx, complex, dimension( nmax\*incmax ) xs, complex, dimension( nmax ) y, complex, dimension( nmax\*incmax ) yy, complex, dimension( nmax\*incmax ) ys, complex, dimension( nmax ) yt, real, dimension( nmax ) g, complex, dimension( nmax ) z, integer iorder)

Definition at line **1831** of file **c\_cblat2.f**.

### subroutine cchk6 (character\*12 sname, real eps, real thresh, integer nout, integer ntra, logical trace, logical rewi, logical fatal, integer nidim, integer, dimension( nidim ) idim, integer nalf, complex, dimension( nalf ) alf, integer ninc, integer, dimension( ninc ) inc, integer nmax, integer incmax, complex, dimension( nmax, nmax ) a, complex, dimension( nmax\*nmax ) aa, complex, dimension( nmax\*nmax ) as, complex, dimension( nmax ) x, complex, dimension( nmax\*incmax ) xx, complex, dimension( nmax\*incmax ) xs, complex, dimension( nmax ) y, complex, dimension( nmax\*incmax ) yy, complex, dimension( nmax\*incmax ) ys, complex, dimension( nmax ) yt, real, dimension( nmax ) g, complex, dimension( nmax, 2 ) z, integer iorder)

Definition at line **2124** of file **c\_cblat2.f**.

### subroutine cmake (character\*2 type, character\*1 uplo, character\*1 diag, integer m, integer n, complex, dimension( nmax, \* ) a, integer nmax, complex, dimension( \* ) aa, integer lda, integer kl, integer ku, logical reset, complex transl)

Definition at line **2741** of file **c\_cblat2.f**.

### subroutine cmvch (character\*1 trans, integer m, integer n, complex alpha, complex, dimension( nmax, \* ) a, integer nmax, complex, dimension( \* ) x, integer incx, complex beta, complex, dimension( \* ) y, integer incy, complex, dimension( \* ) yt, real, dimension( \* ) g, complex, dimension( \* ) yy, real eps, real err, logical fatal, integer nout, logical mv)

Definition at line **2451** of file **c\_cblat2.f**.

### logical function lce (complex, dimension( \* ) ri, complex, dimension( \* ) rj, integer lr)

Definition at line **2583** of file **c\_cblat2.f**.

### logical function lceres (character\*2 type, character\*1 uplo, integer m, integer n, complex, dimension( lda, \* ) aa, complex, dimension( lda, \* ) as, integer lda)

Definition at line **2613** of file **c\_cblat2.f**.

### real function sdiff (real x, real y)

Definition at line **2725** of file **c\_cblat2.f**.

## Author

Generated automatically by Doxygen for LAPACK from the source code.
