Method and structure for fast in-place transformation of standard full and packed matrix data formats
Abstract
A method and structure for an in-place transformation of matrix data. For a matrix A stored in one of a standard full format or a packed format and a transformation T having a compact representation, blocking parameters MB and NB are chosen, based on a cache size. A sub-matrix A 1 of A, A 1 having size M 1 =m*MB by N 1 =n*NB, is worked on, and any of a residual remainder of A is saved in a buffer B. Sub-matrix A 1 is worked on by contiguously moving and contiguously transforming A 1 in-place into a New Data Structure (NDS), applying the transformation T in units of MB*NB contiguous double words to the NDS format of A 1 , thereby replacing A 1 with the contents of T(A 1 ), and moving and transforming NDS T(A 1 ) to standard data format T(A 1 ) with holes for the remainder of A in buffer B. The contents of buffer B is contiguously copied into the holes of A 2 , thereby providing in-place transformed matrix T(A).
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computerized method for an in-place transformation of matrix data, said method comprising: for a matrix A having a size M×N, as stored in a memory of a computer in one of a standard full format or a packed format in one of a column major format or a row major format, and for a transformation T having a compact representation, choosing blocking parameters MB and NB based on a cache size of the computer such that MB*NB lies between an L1 cache size and an L2 cache size, and using a processor on the computer to perform the steps of: determining a size M 1 ×N 1 for blocking matrix A into a plur
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| CN 108,053,855 B | Matrix transposition method based on SDRAM chip | 2021 | 0 |
| CN 108,053,855 A | Matrix transposition method based on SDRAM chip | — | 10 |
References Cited — Backward Prior Art (8)
Non-Patent Literature (2)
- Elmroth, E., Gustavson, F.G., Kagstrom, B., Jonsson, I.: Recursive Blocked Algorithms and Hybrid Data Structures for Dense Matrix Library Software. SIAM Review 46(1), 3-45 (2004).
- Gustavson, F.G.: High Performance Linear Algebra Algorithms using New Generalized Data Structures for Matrices. IBM Journal of Research and Development 47(1), 31-55 (2003).