John A. Gunnels and Fred G. Gustavson
IBM T.J. Watson Research Center
Yorktown Heights NY 10598, USA
email: gustav@watson.ibm.com
We introduce a new format called HFP ( Hybrid Full Packed ) We will cover the six points (1-6) below as well as seeing how HFP fits together with Standard Full and Packed Data Formats.
Both UHFP and LHFP formats consist two full arrays. The 1st full array T holds two triangles T1 and T2 of sizes n1 and n2. The LDT is n1+1 and the number cols is n2. For uplo = 'L' T1 is lower format and T2 is in upper format. The same is true for uplo = 'U'. In the 'L' case T2 is stored in upper format so that the two triangles form a compact square. In the 'U' case T1 is stored in lower format so that the two triangles form a compact square.
The second full array S1 contains the near square between the two triangles of sizes n1 and n2. For uplo = 'L' S1 is stored in row major order ( format is 'Transpose' ) and for uplo = 'U' S1 is stored in col major order ( format is 'Normal' ).
Together these two arrays ( concatenation along the row dimension ) form a single full array of size 2*n1 + 1 rows by n2 columns. Note that LDS = n1 and that both arrays T and S1 are in column major format. The example is general for N odd and T + S1 hold exactly NT = N*(N+1)/2 elements as does the UP and LP arrays.
We give an example in (4) for the case N = 9.