slag2d

Converts a single precision matrix to a double precision matrix.

Syntax

call slag2d( m, n, sa, ldsa, a, lda, info )

lapack_int LAPACKE_slag2d (int matrix_layout, lapack_int m, lapack_int n, const float * sa, lapack_int ldsa, double * a, lapack_int lda);

Include Files

  • Fortran: mkl.fi
  • C: mkl.h

Description

The routine 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.

Input Parameters

m

INTEGER. The number of lines of the matrix A (m 0).

n

INTEGER. The number of columns in the matrix A (n 0).

sa

REAL array, DIMENSION (ldsa, n).

On entry, contains the m-by-n coefficient matrix SA.

ldsa

INTEGER. The leading dimension of the array sa; ldsa ≥ max(1, m).

lda

INTEGER. The leading dimension of the array a; lda ≥ max(1, m).

Output Parameters

a

DOUBLE PRECISION array, DIMENSION (lda, n).

On exit, contains the m-by-n coefficient matrix A.

info

INTEGER.

If info = 0, the execution is successful.

For more complete information about compiler optimizations, see our Optimization Notice.