diff options
Diffstat (limited to 'packages/base/src/C/lapack-aux.c')
-rw-r--r-- | packages/base/src/C/lapack-aux.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/base/src/C/lapack-aux.c b/packages/base/src/C/lapack-aux.c index 77381cc..a977d5f 100644 --- a/packages/base/src/C/lapack-aux.c +++ b/packages/base/src/C/lapack-aux.c | |||
@@ -1670,3 +1670,31 @@ int extractI(int modei, int modej, int tm, KIVEC(i), KIVEC(j), KIMAT(m), IMAT(r) | |||
1670 | EXTRACT_IMP | 1670 | EXTRACT_IMP |
1671 | } | 1671 | } |
1672 | 1672 | ||
1673 | //////////////////////// remap ///////////////////////////////// | ||
1674 | |||
1675 | #define REMAP_IMP \ | ||
1676 | REQUIRES(ir==jr && ic==jc && ir==rr && ic==rc ,BAD_SIZE); \ | ||
1677 | { TRAV(r,a,b) { AT(r,a,b) = AT(m,AT(i,a,b),AT(j,a,b)); } \ | ||
1678 | } \ | ||
1679 | OK | ||
1680 | |||
1681 | int remapD(KOIMAT(i), KOIMAT(j), KODMAT(m), ODMAT(r)) { | ||
1682 | REMAP_IMP | ||
1683 | } | ||
1684 | |||
1685 | int remapF(KOIMAT(i), KOIMAT(j), KOFMAT(m), OFMAT(r)) { | ||
1686 | REMAP_IMP | ||
1687 | } | ||
1688 | |||
1689 | int remapI(KOIMAT(i), KOIMAT(j), KOIMAT(m), OIMAT(r)) { | ||
1690 | REMAP_IMP | ||
1691 | } | ||
1692 | |||
1693 | int remapC(KOIMAT(i), KOIMAT(j), KOCMAT(m), OCMAT(r)) { | ||
1694 | REMAP_IMP | ||
1695 | } | ||
1696 | |||
1697 | int remapQ(KOIMAT(i), KOIMAT(j), KOQMAT(m), OQMAT(r)) { | ||
1698 | REMAP_IMP | ||
1699 | } | ||
1700 | |||