00001 /* slag2d.f -- translated by f2c (version 20061008). 00002 You must link the resulting object file with libf2c: 00003 on Microsoft Windows system, link with libf2c.lib; 00004 on Linux or Unix systems, link with .../path/to/libf2c.a -lm 00005 or, if you install libf2c.a in a standard place, with -lf2c -lm 00006 -- in that order, at the end of the command line, as in 00007 cc *.o -lf2c -lm 00008 Source for libf2c is in /netlib/f2c/libf2c.zip, e.g., 00009 00010 http://www.netlib.org/f2c/libf2c.zip 00011 */ 00012 00013 #include "f2c.h" 00014 #include "blaswrap.h" 00015 00016 /* Subroutine */ int slag2d_(integer *m, integer *n, real *sa, integer *ldsa, 00017 doublereal *a, integer *lda, integer *info) 00018 { 00019 /* System generated locals */ 00020 integer sa_dim1, sa_offset, a_dim1, a_offset, i__1, i__2; 00021 00022 /* Local variables */ 00023 integer i__, j; 00024 00025 00026 /* -- LAPACK PROTOTYPE auxiliary routine (version 3.1.2) -- */ 00027 /* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */ 00028 /* August 2007 */ 00029 00030 /* .. */ 00031 /* .. Scalar Arguments .. */ 00032 /* .. */ 00033 /* .. Array Arguments .. */ 00034 /* .. */ 00035 00036 /* Purpose */ 00037 /* ======= */ 00038 00039 /* SLAG2D converts a SINGLE PRECISION matrix, SA, to a DOUBLE */ 00040 /* PRECISION matrix, A. */ 00041 00042 /* Note that while it is possible to overflow while converting */ 00043 /* from double to single, it is not possible to overflow when */ 00044 /* converting from single to double. */ 00045 00046 /* This is an auxiliary routine so there is no argument checking. */ 00047 00048 /* Arguments */ 00049 /* ========= */ 00050 00051 /* M (input) INTEGER */ 00052 /* The number of lines of the matrix A. M >= 0. */ 00053 00054 /* N (input) INTEGER */ 00055 /* The number of columns of the matrix A. N >= 0. */ 00056 00057 /* SA (input) REAL array, dimension (LDSA,N) */ 00058 /* On entry, the M-by-N coefficient matrix SA. */ 00059 00060 /* LDSA (input) INTEGER */ 00061 /* The leading dimension of the array SA. LDSA >= max(1,M). */ 00062 00063 /* A (output) DOUBLE PRECISION array, dimension (LDA,N) */ 00064 /* On exit, the M-by-N coefficient matrix A. */ 00065 00066 /* LDA (input) INTEGER */ 00067 /* The leading dimension of the array A. LDA >= max(1,M). */ 00068 00069 /* INFO (output) INTEGER */ 00070 /* = 0: successful exit */ 00071 /* ========= */ 00072 00073 /* .. Local Scalars .. */ 00074 /* .. */ 00075 /* .. Executable Statements .. */ 00076 00077 /* Parameter adjustments */ 00078 sa_dim1 = *ldsa; 00079 sa_offset = 1 + sa_dim1; 00080 sa -= sa_offset; 00081 a_dim1 = *lda; 00082 a_offset = 1 + a_dim1; 00083 a -= a_offset; 00084 00085 /* Function Body */ 00086 *info = 0; 00087 i__1 = *n; 00088 for (j = 1; j <= i__1; ++j) { 00089 i__2 = *m; 00090 for (i__ = 1; i__ <= i__2; ++i__) { 00091 a[i__ + j * a_dim1] = sa[i__ + j * sa_dim1]; 00092 /* L10: */ 00093 } 00094 /* L20: */ 00095 } 00096 return 0; 00097 00098 /* End of SLAG2D */ 00099 00100 } /* slag2d_ */