---
name: "cdrvgb.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/cdrvgb.f"
---

# cdrvgb.f(3)

## NAME

TESTING/LIN/cdrvgb.f

## SYNOPSIS

### Functions/Subroutines

subroutine **cdrvgb** (dotype, nn, nval, nrhs, thresh, tsterr, a, la, afb, lafb, asav, b, bsav, x, xact, s, work, rwork, iwork, nout)\
 **CDRVGB**

## Function/Subroutine Documentation

### subroutine cdrvgb (logical, dimension( \* ) dotype, integer nn, integer, dimension( \* ) nval, integer nrhs, real thresh, logical tsterr, complex, dimension( \* ) a, integer la, complex, dimension( \* ) afb, integer lafb, complex, dimension( \* ) asav, complex, dimension( \* ) b, complex, dimension( \* ) bsav, complex, dimension( \* ) x, complex, dimension( \* ) xact, real, dimension( \* ) s, complex, dimension( \* ) work, real, dimension( \* ) rwork, integer, dimension( \* ) iwork, integer nout)

**CDRVGB**

**Purpose:**

```
!>
!> CDRVGB tests the driver routines CGBSV and -SVX.
!>
```

**Parameters**

*DOTYPE*

```
!>          DOTYPE is LOGICAL array, dimension (NTYPES)
!>          The matrix types to be used for testing.  Matrices of type j
!>          (for 1 <= j <= NTYPES) are used for testing if DOTYPE(j) =
!>          .TRUE.; if DOTYPE(j) = .FALSE., then type j is not used.
!>
```

*NN*

```
!>          NN is INTEGER
!>          The number of values of N contained in the vector NVAL.
!>
```

*NVAL*

```
!>          NVAL is INTEGER array, dimension (NN)
!>          The values of the matrix column dimension N.
!>
```

*NRHS*

```
!>          NRHS is INTEGER
!>          The number of right hand side vectors to be generated for
!>          each linear system.
!>
```

*THRESH*

```
!>          THRESH is REAL
!>          The threshold value for the test ratios.  A result is
!>          included in the output file if RESULT >= THRESH.  To have
!>          every test ratio printed, use THRESH = 0.
!>
```

*TSTERR*

```
!>          TSTERR is LOGICAL
!>          Flag that indicates whether error exits are to be tested.
!>
```

*A*

```
!>          A is COMPLEX array, dimension (LA)
!>
```

*LA*

```
!>          LA is INTEGER
!>          The length of the array A.  LA >= (2*NMAX-1)*NMAX
!>          where NMAX is the largest entry in NVAL.
!>
```

*AFB*

```
!>          AFB is COMPLEX array, dimension (LAFB)
!>
```

*LAFB*

```
!>          LAFB is INTEGER
!>          The length of the array AFB.  LAFB >= (3*NMAX-2)*NMAX
!>          where NMAX is the largest entry in NVAL.
!>
```

*ASAV*

```
!>          ASAV is COMPLEX array, dimension (LA)
!>
```

*B*

```
!>          B is COMPLEX array, dimension (NMAX*NRHS)
!>
```

*BSAV*

```
!>          BSAV is COMPLEX array, dimension (NMAX*NRHS)
!>
```

*X*

```
!>          X is COMPLEX array, dimension (NMAX*NRHS)
!>
```

*XACT*

```
!>          XACT is COMPLEX array, dimension (NMAX*NRHS)
!>
```

*S*

```
!>          S is REAL array, dimension (2*NMAX)
!>
```

*WORK*

```
!>          WORK is COMPLEX array, dimension
!>                      (NMAX*max(3,NRHS,NMAX))
!>
```

*RWORK*

```
!>          RWORK is REAL array, dimension
!>                      (NMAX+2*NRHS)
!>
```

*IWORK*

```
!>          IWORK is INTEGER array, dimension (NMAX)
!>
```

*NOUT*

```
!>          NOUT is INTEGER
!>          The unit number for output.
!>
```

**Author**

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Definition at line **169** of file **cdrvgb.f**.

## Author

Generated automatically by Doxygen for LAPACK from the source code.
