Skip to content

Commit d1c5b8f

Browse files
authored
Add files via upload
1 parent 91bde7d commit d1c5b8f

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

interface/zimatcopy.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ void CNAME( enum CBLAS_ORDER CORDER, enum CBLAS_TRANSPOSE CTRANS, blasint crows,
125125
BLASFUNC(xerbla)(ERROR_NAME, &info, sizeof(ERROR_NAME));
126126
return;
127127
}
128-
129128
#ifdef NEW_IMATCOPY
130129
if (*lda == *ldb) {
130+
fprintf(stderr," lda=ldb, new_imatcopy in place\n");
131131
if ( order == BlasColMajor )
132132
{
133133

@@ -141,7 +141,7 @@ void CNAME( enum CBLAS_ORDER CORDER, enum CBLAS_TRANSPOSE CTRANS, blasint crows,
141141
}
142142
if ( trans == BlasTrans )
143143
{
144-
IMATCOPY_K_CT(*rows, *cols, alpha[0], alpha[1], a, *lda );
144+
IMATCOPY_K_CT(*cols, *rows, alpha[0], alpha[1], a, *lda );
145145
}
146146
if ( trans == BlasTransConj )
147147
{
@@ -161,6 +161,7 @@ void CNAME( enum CBLAS_ORDER CORDER, enum CBLAS_TRANSPOSE CTRANS, blasint crows,
161161
}
162162
if ( trans == BlasTrans )
163163
{
164+
fprintf(stderr,"rows trans inplace\n");
164165
IMATCOPY_K_RT(*rows, *cols, alpha[0], alpha[1], a, *lda );
165166
}
166167
if ( trans == BlasTransConj )
@@ -171,7 +172,7 @@ void CNAME( enum CBLAS_ORDER CORDER, enum CBLAS_TRANSPOSE CTRANS, blasint crows,
171172
return;
172173
}
173174
#endif
174-
175+
fprintf(stderr,"lda: %d ldb:%d\n",*lda,*ldb);
175176
if ( *lda > *ldb )
176177
msize = (*lda) * (*ldb) * sizeof(FLOAT) * 2;
177178
else
@@ -205,14 +206,14 @@ void CNAME( enum CBLAS_ORDER CORDER, enum CBLAS_TRANSPOSE CTRANS, blasint crows,
205206
if ( trans == BlasTrans )
206207
{
207208
OMATCOPY_K_CT(*rows, *cols, alpha[0], alpha[1], a, *lda, b, *ldb );
208-
OMATCOPY_K_CN(*rows, *cols, (FLOAT) 1.0, (FLOAT) 0.0 , b, *ldb, a, *ldb );
209+
OMATCOPY_K_CN(*cols, *rows, (FLOAT) 1.0, (FLOAT) 0.0 , b, *ldb, a, *ldb );
209210
free(b);
210211
return;
211212
}
212213
if ( trans == BlasTransConj )
213214
{
214215
OMATCOPY_K_CTC(*rows, *cols, alpha[0], alpha[1], a, *lda, b, *ldb );
215-
OMATCOPY_K_CN(*rows, *cols, (FLOAT) 1.0, (FLOAT) 0.0 , b, *ldb, a, *ldb );
216+
OMATCOPY_K_CN(*cols, *rows, (FLOAT) 1.0, (FLOAT) 0.0 , b, *ldb, a, *ldb );
216217
free(b);
217218
return;
218219
}
@@ -245,7 +246,7 @@ void CNAME( enum CBLAS_ORDER CORDER, enum CBLAS_TRANSPOSE CTRANS, blasint crows,
245246
if ( trans == BlasTransConj )
246247
{
247248
OMATCOPY_K_RTC(*rows, *cols, alpha[0], alpha[1], a, *lda, b, *ldb );
248-
OMATCOPY_K_RN(*rows, *cols, (FLOAT) 1.0, (FLOAT) 0.0 , b, *ldb, a, *ldb );
249+
OMATCOPY_K_RN(*cols, *rows, (FLOAT) 1.0, (FLOAT) 0.0 , b, *ldb, a, *ldb );
249250
free(b);
250251
return;
251252
}

0 commit comments

Comments
 (0)