42{
45
46 if( in == NULL || out == NULL ) return ;
47
51
55
56 return;
57 }
58 if( unit ) {
59
60 st = 1;
61 } else {
62
63 st = 0;
64 }
65
66
67
68
69
70
71 if( !( colmaj || upper ) || ( colmaj && upper ) ) {
72 for( j = st; j < n; j++ ) {
73 for( i = 0; i < j+1-st; i++ ) {
74 out[ j-i + (i*(2*n-i+1))/2 ] = in[ ((j+1)*j)/2 + i ];
75 }
76 }
77 } else {
78 for( j = 0; j < n-st; j++ ) {
79 for( i = j+st; i < n; i++ ) {
80 out[ j + ((i+1)*i)/2 ] = in[ (j*(2*n-j+1))/2 + i-j ];
81 }
82 }
83 }
84}
lapack_logical LAPACKE_lsame(char ca, char cb)