18 #define A(m, n) BLKADDR(descA, PLASMA_Complex64_t, m, n)
25 #if defined(PLASMA_HAVE_WEAK)
26 #pragma weak CORE_zlaswp = PCORE_zlaswp
27 #define CORE_zlaswp PCORE_zlaswp
31 LAPACKE_zlaswp_work( LAPACK_COL_MAJOR, N, A, LDA, I1, I2, IPIV, INC );
39 int i1,
int i2,
int *ipiv,
int inc)
44 sizeof(
int), &n,
VALUE,
46 sizeof(
int), &lda,
VALUE,
47 sizeof(
int), &i1,
VALUE,
48 sizeof(
int), &i2,
VALUE,
49 sizeof(
int)*n, ipiv,
INPUT,
50 sizeof(
int), &inc,
VALUE,
57 #if defined(PLASMA_HAVE_WEAK)
58 #pragma weak CORE_zlaswp_quark = PCORE_zlaswp_quark
59 #define CORE_zlaswp_quark PCORE_zlaswp_quark
63 int n, lda, i1, i2, inc;
68 LAPACKE_zlaswp_work(LAPACK_COL_MAJOR, n, A, lda, i1, i2, ipiv, inc );
76 int i1,
int i2,
int *ipiv,
int inc,
83 sizeof(
int), &n,
VALUE,
85 sizeof(
int), &lda,
VALUE,
86 sizeof(
int), &i1,
VALUE,
87 sizeof(
int), &i2,
VALUE,
88 sizeof(
int)*n, ipiv,
INPUT,
89 sizeof(
int), &inc,
VALUE,
98 #if defined(PLASMA_HAVE_WEAK)
99 #pragma weak CORE_zlaswp_f2_quark = PCORE_zlaswp_f2_quark
100 #define CORE_zlaswp_f2_quark PCORE_zlaswp_f2_quark
104 int n, lda, i1, i2, inc;
110 LAPACKE_zlaswp_work(LAPACK_COL_MAJOR, n, A, lda, i1, i2, ipiv, inc );
143 #if defined(PLASMA_HAVE_WEAK)
144 #pragma weak CORE_zlaswp_ontile = PCORE_zlaswp_ontile
145 #define CORE_zlaswp_ontile PCORE_zlaswp_ontile
155 if ( descA.
nt > 1 ) {
163 if ( (i2 < i1) || (i2 > descA.
m) ) {
167 if ( ! ( (i2 - i1 - i1%descA.
mb -1) < descA.
mb ) ) {
168 coreblas_error(2,
"Illegal value of i1,i2. They have to be part of the same block.");
177 for (j = i1; j < i2; ++j, ipiv+=inc) {
178 ip = (*ipiv) - descA.
i - 1;
185 A(it, 0) + i, lda2 );
195 ipiv = &ipiv[(1-i2)*inc];
196 for (j = i2-1; j > i1; --j, ipiv+=inc) {
197 ip = (*ipiv) - descA.
i - 1;
204 A(it, 0) + i, lda2 );
223 sizeof(
int), &i1,
VALUE,
224 sizeof(
int), &i2,
VALUE,
225 sizeof(
int)*(i2-i1+1)*abs(inc), ipiv,
INPUT,
226 sizeof(
int), &inc,
VALUE,
234 #if defined(PLASMA_HAVE_WEAK)
235 #pragma weak CORE_zlaswp_ontile_quark = PCORE_zlaswp_ontile_quark
236 #define CORE_zlaswp_ontile_quark PCORE_zlaswp_ontile_quark
254 int i1,
int i2,
int *ipiv,
int inc,
263 sizeof(
int), &i1,
VALUE,
264 sizeof(
int), &i2,
VALUE,
265 sizeof(
int)*(i2-i1+1)*abs(inc), ipiv,
INPUT,
266 sizeof(
int), &inc,
VALUE,
275 #if defined(PLASMA_HAVE_WEAK)
276 #pragma weak CORE_zlaswp_ontile_f2_quark = PCORE_zlaswp_ontile_f2_quark
277 #define CORE_zlaswp_ontile_f2_quark PCORE_zlaswp_ontile_f2_quark
321 #if defined(PLASMA_HAVE_WEAK)
322 #pragma weak CORE_zswptr_ontile = PCORE_zswptr_ontile
323 #define CORE_zswptr_ontile PCORE_zswptr_ontile
330 int m = descA.
mt == 1 ? descA.
m : descA.
mb;
332 if ( descA.
nt > 1 ) {
340 if ( (i2 < i1) || (i2 > m) ) {
361 int i1,
int i2,
int *ipiv,
int inc,
369 sizeof(
int), &i1,
VALUE,
370 sizeof(
int), &i2,
VALUE,
371 sizeof(
int)*(i2-i1+1)*abs(inc), ipiv,
INPUT,
372 sizeof(
int), &inc,
VALUE,
374 sizeof(
int), &ldak,
VALUE,
381 #if defined(PLASMA_HAVE_WEAK)
382 #pragma weak CORE_zswptr_ontile_quark = PCORE_zswptr_ontile_quark
383 #define CORE_zswptr_ontile_quark PCORE_zswptr_ontile_quark
387 int i1, i2, inc, ldak;
426 #if defined(PLASMA_HAVE_WEAK)
427 #pragma weak CORE_zlaswpc_ontile = PCORE_zlaswpc_ontile
428 #define CORE_zlaswpc_ontile PCORE_zlaswpc_ontile
436 if ( descA.
mt > 1 ) {
444 if ( (i2 < i1) || (i2 > descA.
n) ) {
448 if ( ! ( (i2 - i1 - i1%descA.
nb -1) < descA.
nb ) ) {
449 coreblas_error(2,
"Illegal value of i1,i2. They have to be part of the same block.");
459 for (j = i1-1; j < i2; ++j, ipiv+=inc) {
460 ip = (*ipiv) - descA.
j - 1;
466 A(0, it) + i*lda, 1 );
474 ipiv = &ipiv[(1-i2)*inc];
475 for (j = i2-1; j > i1; --j, ipiv+=inc) {
476 ip = (*ipiv) - descA.
j - 1;
482 A(0, it) + i*lda, 1 );
501 sizeof(
int), &i1,
VALUE,
502 sizeof(
int), &i2,
VALUE,
503 sizeof(
int)*(i2-i1+1)*abs(inc), ipiv,
INPUT,
504 sizeof(
int), &inc,
VALUE,
512 #if defined(PLASMA_HAVE_WEAK)
513 #pragma weak CORE_zlaswpc_ontile_quark = PCORE_zlaswpc_ontile_quark
514 #define CORE_zlaswpc_ontile_quark PCORE_zlaswpc_ontile_quark