paper

Matrix-by-matrix multiplication algorithm with computational complexity for variable precision arithmetic

arXiv:2410.21050

Abstract

We show that assuming the availability of the processor with variable precision arithmetic, we can compute matrix-by-matrix multiplications in computational complexity. We replace the standard matrix-by-matrix multiplications by where denotes the floor, and denotes the modulo operators. We reduce the number of block matrix-by-matrix multiplications from 8 to 4, keeping the number of additions equal to 4, and additionally introducing 4 multiplications of a block matrices by or , and 4 floor and 4 modulo operations. The resulting computational complexity for two matrices of size can be estimated from recursive equation (multiplication of a matrix by and ) plus (additions of two matrices) plus (floor and modulo) plus (four recursive calls) as . These multiplications of blocks of a matrix by number scales like . We also present a MATLAB code using \emph{vpa} variable precision arithmetic emulator that can multiply matrices of size using vpa operations. This emulator uses digits to run our algorithm.

20 pages, 2 tables, 1 figure

Matrix-by-matrix multiplication algorithm with $O(N^2log_2N)$ computational complexity for variable precision arithmetic · wovepaper