Converts a double-precision triangular matrix to a single-precision triangular matrix.
This routine converts a double-precision triangular matrix A to a single-precision triangular matrix SA. dlat2s checks that all the elements of A are between -RMAX and RMAX, where RMAX is the overflow for the single-precision arithmetic. If this condition is not met, the conversion is aborted and a flag is raised. The routine does no parameter checking.
Specifies whether the matrix A is upper or lower triangular:
= 'U': A is upper triangular,
= 'L': A is lower triangular.
INTEGER. The number of rows and columns of the matrix A.
n ≥ 0.
Array, DIMENSION (lda, *).
On entry, the n-by-n triangular matrix A.
INTEGER. The leading dimension of the array a. lda ≥ max(1,n).
INTEGER. The leading dimension of the array sa. ldsa ≥ max(1,n).
Array, DIMENSION (ldsa, *).
Only the part of sa determined by uplo is referenced. On exit,
if info = 0, the n-by-n triangular matrix SA,
if info > 0, the content of the part of sa determined by uplo is unspecified.
=0: successful exit,
> 0: an element of the matrix A is greater than the single-precision overflow threshold; in this case, the content of the part of sa determined by uplo is unspecified on exit.