Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 10/31/2024
Public
Document Table of Contents

dlag2s

Converts a double precision matrix to a single precision matrix.

Syntax

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

Include Files

  • mkl.fi

Description

This routine converts a double precision matrix SA to a single precision matrix A.

RMAX is the overflow for the single precision arithmetic. dlag2s checks that all the entries of A are between -RMAX and RMAX. If not, the convertion is aborted and a flag is raised.

This is an auxiliary routine so there is no argument checking.

Input Parameters

m

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

n

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

a

DOUBLE PRECISION array, DIMENSION (lda, n).

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

lda

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

ldsa

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

Output Parameters

sa

REAL array, DIMENSION (ldsa, n).

On exit, if info = 0, contains the m-by-n coefficient matrix SA; if info > 0, the content of sa is unspecified.

info

INTEGER.

If info = 0, the execution is successful.

If info = 1, an entry of the matrix A is greater than the single precision overflow threshold; in this case, the content of sa on exit is unspecified.