|
1 | 1 | % GEMMI Compute matrix product using integer Ozaki scheme. |
2 | | -% C = GEMMI(A,B,ASPLITS,BSPLITS,ALGORITHM) computes the product A*B |
3 | | -% using the Ozaki scheme with ASPLITS and BSPLITS slices for the |
4 | | -% matrices A and B, respectively. The ALGORITHM parameter must be |
5 | | -% a struct, with the following fields currently supported. |
| 2 | +% [C, ALGOUT] = GEMMI(A,B,ASPLITS,BSPLITS,ALGIN) computes the matrix |
| 3 | +% C = A*B using the Ozaki scheme with ASPLITS and BSPLITS slices |
| 4 | +% for the matrices A and B, respectively. The ALGIN parameter |
| 5 | +% must be a struct, with the following fields currently supported. |
6 | 6 | % 'split' - selects the stragegy to be used to split A and B into |
7 | 7 | % slices. Possible values are 'b' for bitmasking and 'n |
8 | | -% for round-to-nearest (default). |
| 8 | +% for round-to-nearest (default). |
9 | 9 | % 'acc' - selects how the exact integer matrix products are |
10 | 10 | % accumulated. Possible values are 'f' for floating-point |
11 | 11 | % arithmetic and 'i' for integer accumulation (default). |
| 12 | +% The output paramater ALGOUT is a struct with the same fields as |
| 13 | +% ALGIN, which contains the values used in the computation. |
12 | 14 | % |
13 | | -% C = GEMMI(A,B,ASPLITS,BSPLITS) uses the last ALGORITHM parameter |
14 | | -% in the most recent call to GEMMI, or the default values if no |
15 | | -% previous call was made. |
| 15 | +% [...] = GEMMI(A,B,ASPLITS,BSPLITS) uses the ALGIN parameter passed |
| 16 | +% the most recent call to GEMMI, or the default values if no previous |
| 17 | +% call was made. |
16 | 18 | % |
17 | | -% C = GEMMI(A,B,SPLITS) uses SPLITS slices for both A and B. |
| 19 | +% [...] = GEMMI(A,B,SPLITS) uses SPLITS slices for both A and B. |
18 | 20 | % |
19 | 21 | % The splits are stored as 8-bit signed integer, the dot products are |
20 | 22 | % performed using 32-bit signed arithmetic, and the final accumulation |
|
0 commit comments