Converts a double precision matrix to a single precision matrix.
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.
INTEGER. The number of rows of the matrix A (
m ≥ 0).
INTEGER. The number of columns in the matrix A (
n ≥ 0).
DOUBLE PRECISION array, DIMENSION (lda, n).
On entry, contains the m-by-n coefficient matrix A.
INTEGER. The leading dimension of the array a; lda ≥ max(1, m).
INTEGER. The leading dimension of the array sa; ldsa ≥ max(1, m).
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 = 0, the execution is successful.
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.