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

# slag2d.f(3)

## NAME

SRC/slag2d.f

## SYNOPSIS

### Functions/Subroutines

subroutine **slag2d** (m, n, sa, ldsa, a, lda, info)\
 **SLAG2D** converts a single precision matrix to a double precision matrix.

## Function/Subroutine Documentation

### subroutine slag2d (integer m, integer n, real, dimension( ldsa, \* ) sa, integer ldsa, double precision, dimension( lda, \* ) a, integer lda, integer info)

**SLAG2D** converts a single precision matrix to a double precision matrix.

**Purpose:**

```
!>
!> SLAG2D converts a SINGLE PRECISION matrix, SA, to a DOUBLE
!> PRECISION matrix, A.
!>
!> Note that while it is possible to overflow while converting
!> from double to single, it is not possible to overflow when
!> converting from single to double.
!>
!> This is an auxiliary routine so there is no argument checking.
!>
```

**Parameters**

*M*

```
!>          M is INTEGER
!>          The number of lines of the matrix A.  M >= 0.
!>
```

*N*

```
!>          N is INTEGER
!>          The number of columns of the matrix A.  N >= 0.
!>
```

*SA*

```
!>          SA is REAL array, dimension (LDSA,N)
!>          On entry, the M-by-N coefficient matrix SA.
!>
```

*LDSA*

```
!>          LDSA is INTEGER
!>          The leading dimension of the array SA.  LDSA >= max(1,M).
!>
```

*A*

```
!>          A is DOUBLE PRECISION array, dimension (LDA,N)
!>          On exit, the M-by-N coefficient matrix A.
!>
```

*LDA*

```
!>          LDA is INTEGER
!>          The leading dimension of the array A.  LDA >= max(1,M).
!>
```

*INFO*

```
!>          INFO is INTEGER
!>          = 0:  successful exit
!>
```

**Author**

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Definition at line **103** of file **slag2d.f**.

## Author

Generated automatically by Doxygen for LAPACK from the source code.
