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

# clatb4.f(3)

## NAME

TESTING/LIN/clatb4.f

## SYNOPSIS

### Functions/Subroutines

subroutine **clatb4** (path, imat, m, n, type, kl, ku, anorm, mode, cndnum, dist)\
 **CLATB4**

## Function/Subroutine Documentation

### subroutine clatb4 (character\*3 path, integer imat, integer m, integer n, character type, integer kl, integer ku, real anorm, integer mode, real cndnum, character dist)

**CLATB4**

**Purpose:**

```
!>
!> CLATB4 sets parameters for the matrix generator based on the type of
!> matrix to be generated.
!>
```

**Parameters**

*PATH*

```
!>          PATH is CHARACTER*3
!>          The LAPACK path name.
!>
```

*IMAT*

```
!>          IMAT is INTEGER
!>          An integer key describing which matrix to generate for this
!>          path.
!>
```

*M*

```
!>          M is INTEGER
!>          The number of rows in the matrix to be generated.
!>
```

*N*

```
!>          N is INTEGER
!>          The number of columns in the matrix to be generated.
!>
```

*TYPE*

```
!>          TYPE is CHARACTER*1
!>          The type of the matrix to be generated:
!>          = 'S':  symmetric matrix
!>          = 'H':  Hermitian matrix
!>          = 'P':  Hermitian positive (semi)definite matrix
!>          = 'N':  nonsymmetric matrix
!>
```

*KL*

```
!>          KL is INTEGER
!>          The lower band width of the matrix to be generated.
!>
```

*KU*

```
!>          KU is INTEGER
!>          The upper band width of the matrix to be generated.
!>
```

*ANORM*

```
!>          ANORM is REAL
!>          The desired norm of the matrix to be generated.  The diagonal
!>          matrix of singular values or eigenvalues is scaled by this
!>          value.
!>
```

*MODE*

```
!>          MODE is INTEGER
!>          A key indicating how to choose the vector of eigenvalues.
!>
```

*CNDNUM*

```
!>          CNDNUM is REAL
!>          The desired condition number.
!>
```

*DIST*

```
!>          DIST is CHARACTER*1
!>          The type of distribution to be used by the random number
!>          generator.
!>
```

**Author**

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Definition at line **119** of file **clatb4.f**.

## Author

Generated automatically by Doxygen for LAPACK from the source code.
